Not so... One of the big reasons I can produce code that doesn't need upgrading every 3 hours to eliminate bugs is that I DO entertain the thought.
For every line of code I write there are two things I consider, beyond simply getting it to work...
1) How can I make this simpler...
2) How many different ways can this screw up?
Smart programmers are just as aware of what does not work as what does.
This is a friendly reminder of the forum guidelines:Originally Posted by C_Sparky
You may know the pitfalls behind what you post, but if you do not caution the novice to whom you make such a suggestion, or simply make the suggestion without such pitfalls, then you should expect someone else to come along and do so, or else the novice may pick up bad habits. Telling them that they need to "relax" or insinuating that they are not "good programmers" because of that is poor form.8. Do not flame/troll. Messages whose intent is to "Flame," "Troll," or purposely insult or incite another person, or any portion of a post that "flames" will be deleted.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)