DEV Community


Discussion on: Bad Programming Habits

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.

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