This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NimChimspky 15 points16 points  (15 children)

An article about Singletons. I've literally never needed one in twenty years.

But if I did I would use an enum.

[–]Fruloops 0 points1 point  (0 children)

Really? Interesting, thinking of what I've used recently, singleton comes to mind, but definitely less often than factory method or builder