1073
submitted 1 year ago* (last edited 1 year ago) by zoe@lemm.ee to c/aboringdystopia@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] ChickenLadyLovesLife@lemmy.world 25 points 1 year ago

There's a weird ongoing thing in the programming world where about half of coders think code should be well-commented and the other half not only think that code shouldn't contain comments but also think that comments are an indicator of professional incompetence (aka a "code smell"). I've long noticed that the anti-commenting crowd are also the ones that can't write very well.

[-] Jax@sh.itjust.works 12 points 1 year ago

Almost like they don't want anyone to figure out how dogshit their code is.

[-] Gabu@lemmy.world 2 points 1 year ago

People who dislike code documentation are often overoptimizers, from my experience.

[-] DarthBueller@lemmy.world 3 points 1 year ago

Optimizing like it’s the early 80s and every byte is precious? Or do you mean something else?

[-] Gabu@lemmy.world 2 points 1 year ago

Exactly. Using 10 obscure instructions to save 1 clock cycle.

[-] afraid_of_zombies@lemmy.world 0 points 1 year ago

Assuming it even does save it. The complier is going to do what it wants to do. Unless you really know your stuff any high level language is going to be a black box. One guy I worked with loved to do that but he would be able to prove that it did matter.

[-] afraid_of_zombies@lemmy.world 3 points 1 year ago

In my experience it is job security.

[-] kicksystem@lemmy.world 9 points 1 year ago

One way my code improves is by thinking what I need to comment. Then I refactor some and the comments become somewhat redundant.

[-] afraid_of_zombies@lemmy.world 1 points 1 year ago

I don't think I would agree to work with someone who doesn't comment their code.

I was basically driven out of my last job by someone who wouldn't agree to work with someone (me) who did comment their code. Like I said, it's a really weird dividing line in programming.

this post was submitted on 06 Oct 2023
1073 points (97.8% liked)

A Boring Dystopia

9773 readers
178 users here now

Pictures, Videos, Articles showing just how boring it is to live in a dystopic society, or with signs of a dystopic society.

Rules (Subject to Change)

--Be a Decent Human Being

--Posting news articles: include the source name and exact title from article in your post title

--Posts must have something to do with the topic

--Zero tolerance for Racism/Sexism/Ableism/etc.

--No NSFW content

--Abide by the rules of lemmy.world

founded 1 year ago
MODERATORS