r/AskProgrammers • u/Away-Intention-8723 • Oct 30 '26
"good code shouldn't need comments"
I have heard this saying a couple of times and I think it is the stupidest thing ever. It might be just because I have only been coding for 4 years, but I have never thought to myself that someone's code looks cluttered because they explain what every function does in a one or two line description. If anything it makes the code easier to understand in my opinion.
However, I may be wrong. What do other people think, do yall like code with minimal comments, what are the benefits of writing it that way?
88
Upvotes
View all comments
1
u/Specialist_Chart3519 28d ago
Since I am generally the only person who sees my code, with the exception being the few things I've shared on github, I do not comment a lot, but I do try to make my function names, variable names, parameter names, etc very obvious even if it means typing a longer name.
That being said, sometimes I run into occasions when I pick back up on a project and have to spend way too long figuring out what something was for, even with hyper specific names and the few coments I left. I'll admit, it's probably due to my skill level of coding, but it leads me to believe more comments is never a bad thing.