Sign in to follow this  
  • entries
    94
  • comments
    127
  • views
    82927

The "what if?" mantra

Sign in to follow this  
Seriema

100 views

Shh, don't tell Seriema that we can see his dirty secrets!

The "what if?" mantra is anti-design mentality. That occurs when you're either to inexperienced with a piece of functionality or just to lazy to design it correctly, thus giving a part of your code more data than it needs. Some symptoms are:

    Your class has so many functions it looks like Java: your class has every possible function you could think of, "just in case you need it".
    Your function looks like Win32 API: your function has one parameter for every variable you can pass it, "maybe some could be used for something".
    You're using the F'in Singleton Pattern or F'in Globals (same principal): by making everything singletons/globals you're infecting every piece of your code and all that it touches with symptom nr 2 since now everything can get ahold of all possible data variables you've created.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

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