|
It can't always be you. I hear quite a few people make that statement......
|
|
|
|
|
You forgot to include your e-mail address
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Should have been an option.
|
|
|
|
|
It was, you just have to tick all the boxes!
|
|
|
|
|
No comments: should be "the default case" because code should be self-explaining.
I cant blame for "Writing code that assumes a default behaviour" because thats my style
How often do you "Copy & Paste" Code?
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
KarstenK wrote: code should be self-explaining.
I don't entirely agree with that.
No matter how simple person A makes code, Person B reading it may or may not find it that way.
If you want to avoid person B saying "Why did he do that?" or "Why did he do it this way?", put comments.
|
|
|
|
|
Yepp. You got to read my comment (and all source code) precisly
I hammered it out: "code should be self-explaining" - what does it mean
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
As per the title.
The 'No Comments' one only applies to code that is not obvious on first glance. Code that is obvious, like i++ , doesn't need a comment.
What do you get when you cross a joke with a rhetorical question?
|
|
|
|
|
I hate code which needs explations
bad
if(i >10) return -1;
without comment you are left in the dark
good
if(counter > MAX_ORDERS) return false;
all clear, lets do other stuff.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|