Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    94
  • comments
    127
  • views
    83488

The F'in Singleton Pattern

Sign in to follow this  
Seriema

130 views

The F'in Singleton Pattern is the one considered the universal OOP solution to all design problems.

So there, I coined it :P
Sign in to follow this  


3 Comments


Recommended Comments

The F'in Singleton Pattern is the one considered the universal HACK to all design problems.

Share this comment


Link to comment
I think I have a decent understanding of singletons, but I tend to view them as a slightly better way to make things available at global scope.

Maybe i'm wrong, but I usually avoid singletons unless I have to use them, or if they make my code noticably less complex.

Share this comment


Link to comment
Yeah, just be carefull though. What might seem as "making it less complex" can turn out to be just the opposite in the long run. Use it if you have no other option...

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!