DEV Community

loading...

Discussion on: The Importance of Quality Comments

Collapse
almellor profile image
Alan Mellor

I subscribe to the 'prefer code to comments' and use Extract Method to pull out - and name - those blocks headed up by a comment.

Certainly, the last example isn't suffering because it has no comment s. They would just be band-aid for a too big, too complex single function. Get the Refactoring axe to it!

Forem Open with the Forem app