rwaldron / idiomatic.js

Principles of Writing Consistent, Idiomatic JavaScript
Other
24.67k stars 3.47k forks source link

Comment section is vague, needs examples and explanations #114

Open mimshwright opened 11 years ago

mimshwright commented 11 years ago

Please add more detail to your comment section.

borisdiakur commented 10 years ago

There should actually exist a guidance on how to document code efficiently. Of course you can just use JSDoc style all over the place, but then you end up with something like this:

/**
 * This function does some complicated stuff
 */
function doSomeComplicatedStuff() { /* ... */ }

What we actually need is an understanding on how to describe our code so that it helps us understand it better. This would include answering questions like: