602
No comment (lemmy.nz)
you are viewing a single comment's thread
view the rest of the comments
[-] HamsterRage@lemmy.ca 2 points 1 week ago

Hard and fast rules are for beginner, but their code is going to be crap anyway.

For everyone else, comments when it makes the most sense is all you need.

I will say that following a few simple principles, when appropriate, like "Don't Repeat Yourself", and the "Single Responsibility Principle" tend to lead to smaller methods with clear intent that give better opportunities to name things appropriately.

If I see well laid out code with one or two comments, I'm likely to actually read the comments. Otherwise I view comments as meaningless noise.

this post was submitted on 25 Sep 2026
602 points (98.9% liked)

Programming Humor

3503 readers
1 users here now

Related Communities !programmerhumor@lemmy.ml !programmer_humor@programming.dev !programmerhumor@kbin.social !programming_horror@programming.dev

Other Programming Communities !programming@beehaw.org !programming@programming.dev !programming@lemmy.ml !programming@kbin.social !learn_programming@programming.dev !functional_programming@programming.dev !embedded_prog@lemmy.ml

founded 3 years ago
MODERATORS