you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 3 weeks ago (2 children)

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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 3 weeks ago (1 child)

    Depends on how old school. Some of those older languages absolutely need explanation everywhere.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 3 weeks ago

    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.

  • source
  • parent