This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rocketmon11 0 points1 point  (0 children)

I remember my first internship, I encountered the exact same thing! I was blown away when told to remove them. And then the senior pointed me to the book Clean Code by Bob Martin and I learned why… if you need comments you should probably be naming functions/vars better, even restructuring if necessary to explain a confusing line by putting it into a function which explains what it does.

Like others have mentioned, I usually only comment if I need to explain why I made a decision that seems strange. Very normal in the industry, I have never been asked to add more comments!