Post

Programming Wisdom
Programming Wisdom@CodeWisdom·
“Good code is its own best documentation. As you're about to add a comment, ask yourself, 'How can I improve the code so that this comment isn't needed?' Improve the code and then document it to make it even clearer.” - Steve McConnell
English
13
376
1.1K
0
stop being stupid
stop being stupid@akronymn·
@CodeWisdom No. Code and natural language are different. Quit telling people to use the wrong tool for the job.
English
2
1
21
0
Daniele Antonini
Daniele Antonini@daniele_ntn·
@CodeWisdom @mjpt777 A comment describe why you did it in that way, the code describe how did it. So please think before to write code and comment.
English
0
1
8
0
Rasmus Bækgaard
Rasmus Bækgaard@Limroto·
@CodeWisdom But then comes that section, where you must manipulate the array. It's just 3 simple lines, but the comment /*Remove duplicate, and resize array*/ is what makes me say "oh, yeah - now I see". Not all code lines makes sense when you are searching for something, but comments do.
English
1
1
3
0
Wgate Gaucho
Wgate Gaucho@WgateGaucho·
@CodeWisdom Says the guy who worked on 10 different software development projects in 10 years and never had to support the code he wrote.
English
1
0
3
0
cc young
cc young@bangkokMaco·
@CodeWisdom Disagree. Main purpose of good doc is to find the section of code you're interested in. Micro-doc is indeed - or should be - spurious.
English
0
0
0
0
Ihe Onwuka
Ihe Onwuka@mazihe·
@CodeWisdom The problem with this statement is that to most people good code is code written in their favourite programming language.
English
0
0
0
0
Aviraj Singh (Blue Tick)
Aviraj Singh (Blue Tick)@avirajsingh·
@CodeWisdom You may write the best code. But proper comments explaining the code might prevent some idiot from modifying the code in an unexpected manner
English
0
0
0
0
Paylaş