By djo.mos
via suereth.blogspot.com
Published: Oct 08 2008 / 08:27
Some of you may be wondering why I'm writing about fundamentals of mechanical engineering. Actually, This posting is about statics in programming. Other words sometimes used for statics are globals, singletons or pure evil. The goal of this post is to show why you should avoid statics/globals/singletons in your own code, and what you can gain by doing so.
Comments
zynasis replied ago:
is this a joke? if it is, you fail at humor.
if it isnt a joke... please stop spreading idiotic rants
Ricky Clarkson replied ago:
It looks like what he's saying is that singletons are ok if you don't have mutable data in them or make their methods have (uncontrolled) side effects. Isn't that true of much of programming?
(comment repeated on the blog)
eelmore replied ago:
Singletons have their uses... albeit not as often as a novice might think.
daveschinkel replied ago:
zynasis, why don't you reveal your real name and stop hiding behind your alias while you make these weak comments?
zynasis replied ago:
what difference is it going to make if i post under my real name?
the answer: none
diaf
Joshua.Suereth replied ago:
If you offer up meaningful comments, I'm willing to discuss. Otherwise, I'm going to perpetuate the stupidity of meaningless arguments: http://www.xkcd.com/481/
Voters For This Link (12)
Voters Against This Link (9)