I am a self-loathing user of the Singleton design pattern.  Global states make small scale development much less painful, especially when maintaining the state of a user interface in Flex.

Misko Hevery gives a great explanation of why the Singleton design pattern is really an anti-pattern.  I am continuing to use Singletons for now, but I think it's time to learn Robotlegs or another dependency injection framework for ActionScript...

No comments:

Post a Comment