DEV Community

Discussion on: Bad Programming Habits

Collapse
 
sin_mjeseca profile image
Mjesečev

I read a lot of "if you need comments your code is not clear enough". That really tells how "professional" you and your work is. I bet your biggest projects were calculators. 😂😂😂 Maybe I can figure out why some variables are there by taking some time reading it and scrolling searching for use but why should i take 1 hour of reading code when I can understand in 10 mins by reading comments. Another thing that is more important than comments are self-explainatory variable and function names. So yea, stop acting important and smart.

Collapse
 
mxldevs profile image
MxL Devs

Ya I don't understand people's issues with comments. If the code is calling like 20 other functions, grabbing data from multiple sources doing all sorts of crazy comparisons and checks, etc it might be nice to know what problem it's supposed to solve.

Maybe it's just a bad solution, which translates to bad code, and now I just wasted all that time trying to understand it.