Singletons and global state

programming — Tags: , , , , — Glen @ 8:32 am

A very useful article from Google’s Miško Hevery about the problems with the Singleton design pattern. Essentially, Singleton’s rely on a global instance variable which could point to any number of other variables, thus creating a global state. This causes problems when you want to test your code.

Share/Save/Bookmark

New Blog Design

blog — Tags: , , , — Glen @ 7:50 am

I’ve installed a new Wordpress Theme to freshen things up a bit. It’s called Spotlight and I think it’s a nice minimalist design, with enough flair to keep the page looking interesting.

Let me know what you think!

Share/Save/Bookmark

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2008 Glen Scott - Keeping it simple, since 1977 | powered by WordPress with Barecity