A short comment on comments in the code

My short comment on why you should stop using comments in your code (unless in special cases).

Screenshot from the code editor with the commented text “This comment is just to let you know that I wrote many lines of the code You can remove it easily Don’t worry about that — I just like writing But comments can lie — code never does”
How I see the majority of comments in the code

Tl;dr

Please, think twice before adding comments to your code. Probably, there are no needed and will just confuse people who will read your code later on. Write a clean, readable code instead. Thanks in advance!

Intro

--

--

Full-stack developer from Cracow, Poland. Google Developer Expert in Web. Passionate about a11y, best coding practices and singing. https://www.domizajac.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dominika Zając

Full-stack developer from Cracow, Poland. Google Developer Expert in Web. Passionate about a11y, best coding practices and singing. https://www.domizajac.com