+ 5

Joke: Real programmers don’t comment their code. If it was hard to write it should be hard to read.

22nd Nov 2016, 6:47 PM
David Kariuki
David Kariuki - avatar
11 Réponses
+ 7
taken from the guide "How to program !correctly"
22nd Nov 2016, 7:02 PM
Burey
Burey - avatar
+ 7
you forgot the [joke] tag
23rd Nov 2016, 2:01 AM
Eduard Alexandru
Eduard Alexandru - avatar
+ 5
When you are writing code, comment as if the next guy managing your program is a homicidal maniac who knows where you live.
5th Dec 2016, 12:16 AM
miketech
miketech - avatar
+ 2
what does it mean, "real programmers"????, if ur code contains 1000 line, i am sure, u forget in one week everything..
22nd Nov 2016, 6:49 PM
Ozan Karataş
Ozan Karataş - avatar
+ 2
There is a problem. A big programmer works alone. The real programmers work in team. So to comment code is necessary
22nd Nov 2016, 7:09 PM
Petr Hatina
Petr Hatina - avatar
+ 1
How do you forget 100 lines of code definately which is related. If you'd sayed 1000 classes it would have been true. But lines nooo thats too minimal.
22nd Nov 2016, 6:51 PM
David Kariuki
David Kariuki - avatar
+ 1
yeah tell that to the guy who will work with your code after you
23rd Nov 2016, 6:58 AM
jvoljvolizka
jvoljvolizka - avatar
+ 1
I'm really excited about this c++ app !
24th Nov 2016, 12:45 AM
Josue Jean-charles
Josue Jean-charles - avatar
+ 1
"Real" in the sense that anyone who's struggled with poor instructions/guidance should immediately laugh at the false use of 'real'...because we imagine people to be mostly altruistic and this is arguably 'not'.
27th Nov 2016, 4:42 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
Up to a point, you hope your code is mostly self-documenting. If you have to read a comment to understand something you can argue what you're doing isn't clear enough. Convention develops as a result (like i,j,k for iterators - from people who've used matrices) and this built-in 'meta' behavior (the choices of programmers) means you're not memorizing programs...you're reading according to a convention...and that other programmers can identify you as doing what they do.
27th Nov 2016, 4:54 PM
Kirk Schafer
Kirk Schafer - avatar
0
wenn u write Hello World, u do not need the comment:D
22nd Nov 2016, 7:13 PM
Ozan Karataş
Ozan Karataş - avatar