DEV Community

Discussion on: Bad Programming Habits

Collapse
 
workingwebsites profile image
Lisa Armstrong

Working with existing code feels like coming into a movie series half way through -- you have no idea who the characters are, and why they're doing that.

Some background really helps!

IMHO, comments should give context.

Ex.
"Looping through results" is pointless.
"Build array for export" tells you why.