Speculative generality One of the principles of Extreme Programming (XP) is that you shouldn't write code until you need it XP assumes that code will change frequently, and tries to make change as fast and easy as possible If you try to make things too general, you may have unnecessary code that just gets in the way If the only users of a class or method are test cases, the code should be thrown away Since I hate to throw away good code, I usually move unused code to a discards directory
{}