602
No comment
(lemmy.nz)
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
Upvoted because you sound exactly like my old school MCU professor. Old school C guy who would die on the hill that overly-commented code is smell. He spat on arduinos and told us we'd be better off doing any hobby projects on ATmega, lol. I assume your downvotes are from folks in the new school, but I'd hold that your old school values are still very much needed today.
Depends on how old school. Some of those older languages absolutely need explanation everywhere.
Absolutely. Its not always possible to write self explantory code. Especially when you have to use some narly uncommon Syntax a short comment can improve the readability Quite a lot. Personally I like to comment my Parameter Expansions in Bash, since I find its Syntax quite hard to remember and therefore it can be a little bit challenging to infer the functionality just by looking at a bunch of special characters.