DEV Community

loading...

Discussion on: Comments Are The Only "Code Smell"

Collapse
justsharkie profile image
/*Sharkie*/

Back in college, I had one prof who told us to comment EVERYTHING, and would grade us on our comments.

This was also the prof who wanted us to name our variables/functions "x", "foo" or "bar".

I caused him a lot of grief when I said we needed more explanatory names and less comments. I wish I knew his contact info so I could send this too him. 😂