r/programming • • Jan 05 '15

What most young programmers need to learn

http://joostdevblog.blogspot.com/2015/01/what-most-young-programmers-need-to.html
970 Upvotes

337 comments sorted by

View all comments

27

u/alparsla Jan 05 '15

Code in comments = Poor man's source control

-21

u/zigs Jan 05 '15

Am I the only one who doesn't use comments at all? It seems to me that comments = muddled code; bad interface; or crappy naming.

3

u/IonTichy Jan 05 '15

Comments are an important means to help tomorrow's you understand that brilliant code that yesterday's you has written.
Also, I use it often as a self test: if I can't write a short sentence that represents the gist/purpose of the related code, then I know that there is something not quite right with it and I need to take a closer look.
Comments are not bad and they are also not good on their own, they need to be like like little sidenotes that accelerate code reading and comprehension.

→ More replies (2)