Stop using if else statements

Conditions are a necessity to logic. You need them. But the use of else drives me mad! It’s code pollution. Not only does it look gross but it slows a developers ability to understand code. Consider the following censored PHP code sample from a real web app: if (stripos(getcwd(), “/some/deep/directory/”) !== false) { // Perform…

Share Button
Read more
Back to top
http://twitter-widget.com/blog/button-html/