Call me crazy right now before you even start reading this post just to get it out of the way.
I think it would be great if comments were removed from programming languages entirely. I think they do more harm then good and that if we removed the ability to use them a lot of us would have to be more disciplined when we code. Now, before you get all worked up hear me out. Here are my reasons for abolishing comments into programming language history.
1: If you couldn't use comments in a programming language you wouldn't get people admitting that they don't know what they are doing like this.
2: Comments are a code smell. If you couldn't use them you would have to explain what you are doing in a method name or with your code.
3: TODOs are more often than not forgotten and rot inside the code. Maybe a TODO is better off as a story. Do people really need to know that you "hacked" something to make it work?
4: No one deletes commented out code, if you couldn't use them code would be a lot cleaner.
5: Comments are a way to temporarily get your code to compile but does it really need to compile or do you just need to write a test and some functionality that isn't there yet?
I would like to hear some arguments for keeping comments in programming languages. If not lets get rid of them! Viva Le Revolution!
Theme design by Jelle Druyts
Pick a theme: BlogXP business calmBlue Candid Blue dasBlog dasblogger DirectionalRedux Discreet Blog Blue Elegante essence Just Html MadsSimple Mobile Mono Movable Radio Blue Movable Radio Heat nautica022 orangeCream Portal Project84 Project84Grass Slate Sound Waves Tricoleur useit.com Voidclass2 BlogXP business calmBlue Candid Blue dasBlog dasblogger DirectionalRedux Discreet Blog Blue Elegante essence Just Html MadsSimple Mobile Mono Movable Radio Blue Movable Radio Heat nautica022 orangeCream Portal Project84 Project84Grass Slate Sound Waves Tricoleur useit.com Voidclass2
Powered by: newtelligence dasBlog 2.0.7226.0
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2008, Steven Rockarts
E-mail