this post was submitted on 05 Mar 2025
41 points (91.8% liked)

Programming

18676 readers
108 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

I may be a old man yelling at the clouds, but I still think programming skills are going nowhere. He seems to bet his future on his 'predictions'

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 3 days ago (1 children)

I can understand commenting ASM, optimized C code can use some comments too, but commenting python should be a crime, as its function calls document themselves, and you'll usually split data over named variables anyway.

[–] balder1993 3 points 3 days ago (1 children)

Only chatGPT has these kinds of comments as if you’re seeing code for the first time. 😆

I’m not against adding comments where is needed: in the company I work for (a big bank) my team takes care of a few modules and we added comments on one class that is responsible to make some very custom UI component with lots of calculations and low level manipulations. It’s basically a team of seniors and no one was against that monster having comments to explain what it was doing in case we had to go back and change something.

For 99% of the code you just need to have good names though.

[–] [email protected] 1 points 3 days ago

Exactly what I'm saying. Also in a big bank btw :3