Posts tagged as 'Best practice'
Singleton Factory
I’ve mentioned before how I dislike the Singleton pattern… So this morning I was experimenting with various other possible ways to create singletons in Actionscript 3 and came up with a function that can be used to create and reuse a single instance of any class. I don’t know how useful it will turn out to be but here it is. It’s also a useful example of a package level function…
Posted on 27 July 2007 | 7 comments | continue reading
Software Best Practices
It’s great to see that Construx Software have started blogging. For those that don’t know, Construx was founded by Steve McConnell, author of a number of books including the excellent “Code Complete” and “Professional Software Development”.
The new blogs cover a range of information related to software development and project management. If you’re a developer, project manager or even CEO and you’re interested in improving the way you develop software there’s a number of gems on these blogs already. So go take a look.
Posted on 4 June 2007 | no comments | continue reading
Singletons – we’re better off without them
With the introduction of Actionscript 3 there was a lot of discussion about how to implement the singleton design pattern. This happened because Actionscript 3 doesn’t allow private or protected constructors and this prevents the most common implementation technique for singletons. But singletons are never actually needed and are rarely a good idea.
Posted on 22 January 2007 | no comments | continue reading
