DEV Community

Discussion on: Don't document your code. Code your documentation.

Collapse
 
netmannh profile image
Eric Grabowski

Both! Use meaningful variables to help define your constructs but also explain your thought process in comments. As someone who as written code and fixed other people's code nothing helps more than "// this loop examines each item in the array looking for the process flag" W00T! I now know why this loop exists!