Showing posts with label singleton. Show all posts
Showing posts with label singleton. Show all posts

Wednesday, May 16, 2012

Eliminating Singletons


I've been doing a lot of reading about how using singleton classes is becoming bad practice in programming due to hidden dependencies, hard to test etc etc.

Tuesday, May 15, 2012

Static methods: are they still bad considering PHP 5.3 late static binding?


If you search on the reasons why static methods are bad the first thing you find it is because you can't override it when you are unit testing.