DEV Community

Discussion on: Why Code Comments Still Matter

Collapse
 
bradledford profile image
Brad Ledford

I always liked to start a program with comments as pseudo code or to do the same in a unit test. Collecting ones thoughts by writing the goals of the program in narrative form always helped me later in the implementation. Rather than deleting each step in the pseudo code, I would leave it in place just above each step in the code.

Collapse
 
realedwintorres profile image
Edwin Torres

Brad- I take the same approach. Those comments are like an outline. I agree; why not leave them after implementation?