Thursday, April 19, 2007

What a State of Affairs!

Again, you all played nicely with state machines today. They are a significantly different strategy for designing a system and take some getting used to. Thanks for sticking with the details and not getting too frustrated.

I really wish the book's example was more consistent because state machines can be a very disciplined way to specify the behavior of many kinds of systems. As with all techniques, when we build the machine inconsistently, the resulting code also has inconsistencies. If you're going to use them, just be consistent about what is an input, what is an action, and whether you're building a Mealy or a Moore machine.

I was also pleased with how quickly you saw two important concepts: the tight coupling in the book's solution and how our solution exactly matches the strategy pattern. You all are getting VERY good at this. I see some significant improvement in your ability to evaluate designs and make good generalizations and that makes me very happy!

2 comments:

Anonymous said...

Sorry can't think of something meaningfull to say...

Dr. Wellington said...

Thanks for commenting anyway - it made me smile (and glad that someone's reading this!)