What do all of you think regarding the use of singletons for data models and controllers?
I like to use a dataModel singleton for, you guessed it, my data class because it just makes sense to me.
Also, I think it makes sense to use the FlexGlobals.topLevelApplication singleton as a controller for the application. Any thoughts?
There is definitely a camp that considers the use of Singletons to be poor design and is very much in favor of avoiding them. It all depends.
I have been told that singletons are poor design, but it seems like a matter of taste to me. Cairngorm (I hate the name) loves the singleton and it is the most established flex framework.