Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Top stupidest programming polemics

Name: Anonymous 2013-05-22 21:46

1. Gotos considered evil
For too long, schools have been successfully spreading the fallacy that gotos should never be used. Whenever I write code for someone and I use a goto, someone always complain:
"Man, you used gotos to [Handle errors/Break out of multiple loops/we]"
So knowing usually the kind of people I'm dealing with I respond:
"Why?"
But people always fail to know the real reason gotos used to be bashed on:
"They're just evil..."

2. Tabs vs. Spaces for indentation
Everyone using a real text editor knows that tabs are by far superior to spaces. There are easily at least five times more reasons to use tabs than to use spaces. Even worse than that, the reason I hear the most often to use spaces is that "tabs don't have the same number of spaces in text editors" while IT IS THE WHOLE FUCKING IDEA OF USING TABS, ANYONE CAN SEE AS MANY SPACES AS THEY WANT.


3. Global variables are bad

No. Just like gotos, they are when idiots don't know when to use them.

Name: Anonymous 2013-05-23 17:14

>>37
_start as well as any other visible symbol is globally visible, true, and that's one that you do need. But that's not mutable state. It's mutable globally visible data that can be problematic. If your logic is driven by data, and some of that data is constant, then by all means store global constant data structures in your code (dumb functions and smart data, and all that). That can be a good idea and will not bite you in the ass in the way that global mutable state will.

>>35
Now that's thinking out of the box, even if it's just one guaranteed push back.

>>38
Can my global variable be seen from ISS? Where's the limit?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List