TDD Prevents Copy and Paste Programming
Copy, Paste, Fail, Repeat Today, I was reviewing some code, and I saw a “before” that looked like this: private void RefreshClassifierValues(Array NewValues) { List ClassifiersList = Classifiers; int i = 0; foreach (Classifier classifier in ClassifiersList) { classifier.Value = NewValues.GetValue(i++); } } The first thing that stuck out to me was that I really…
