You will be assimilated

by Warlock on Aug.24, 2008, under Patterns

I was reading up on implementing the Singleton Design Pattern in various languages, and I found an interesting discussion about how the Python community prefers the Borg design pattern instead. The idea is rather than focussing on only allowing one instance of a class to be created, you just make the internal state of the objects the same (one mind, many bodies, get it?). I thought the name was awesome.


1 Comment for this entry

  • Warlock

    As a corollary to this naming convention, I think we should make rename the Singleton design pattern the highlander design pattern (there can be only one).

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...