You are being asinine if you believe that you are the great'professional software developer' whose blind beliefs constitute the one and only true way in which code must be written. |
In my experience, the most terrible type programmer of all is the one deluded and opinionated enough to think that his blind, unreasoned, begotted beliefs about programming constitute a universal religion. |
Nowhere have I stated that this is the "one true way". In fact, I've argued against religious one-true-wayism on this forum and in others. What I
have done is made some recommendations, and clearly (I hope) explained my reasons as to why I think my recommendations are worth adopting. I've also, apparently, had the tenacity to disagree with you, which appears to have prompted an explosion of ire.
You're grossly misrepresenting my position here. Please don't do that. It's dishonest, and it adds nothing of value to the discussion.
Mono coding guidelines:
Avoid using unnecessary open/close braces, vertical space is usually limited: |
I've worked in environments where vertical space is limited - small, old-fashioned, low-resolution monitors, etc. In those conditions it has been the case that the benefits of forgoing the braces for single-line blocks outweigh the benefits of putting them in, and I'll quite happily adopt that practice under such conditions.
However, I don't think that "vertical space is usually limited" is an accurate description of the circumstances of most people programming in 2013. Monitors these days tend to be cheap, large and high-resolution, and even laptops have screen sizes and clarity that I would have killed for when I started out in this industry.
In any case, it's a stronger argument than just expecting nobody to ever make a mistake when maintaining code.
I'd also argue that a beginner (and, remember, we are in the
Beginners forum here) is more likely to make the kind of mistake that you or I would catch in an instant, and that adopting practices that protect against such mistakes should therefore take an even higher priority.
I appreciate that these are matters of opinion, and I'm certainly happy to consider good arguments for adopting alternate practices. I'm just not convinced that saving a bit of vertical space is, under usual programming conditions, a strong argument for abandoning robustness. Nor is "I expect people never to make a mistake".