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....

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...

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.

previous page