Skip to main content
5 events
when toggle format what by license comment
Jan 31, 2012 at 0:52 comment added Winston Ewert @DarfZon, no. Like your BinaryProblemConfiguration the range of the values should be set by manipulating the properties of the object. No need for extra classes. You should set those properties in the ProblemConfiguration class. There you should create three versions of each and add them all to the problemFactory
Jan 31, 2012 at 0:15 comment added Darf Zon With the design that you propose. Supposing we need in addition problems the three levels (Easy, Medium and Hard), should I have three AdditionXProblemConfiguration?
Jan 30, 2012 at 23:47 comment added Lars-Erik I agree with Winston about having just one Random instance. Without looking very closely, I don't see why you can't just have it as static protected in the most relevant (abstract?) base class. (As I proposed in my example the other day)
Jan 29, 2012 at 5:00 comment added Darf Zon thanks for take a look Winston, but I have my doubth about the design, maybe because is midnight, but I can't understand how would I use the last three classes? And this one is off topic, I'm still learning about how create good designs, I really have difficulty creating these designs.. what books would you recomend me?
Jan 29, 2012 at 4:43 history answered Winston Ewert CC BY-SA 3.0