this post was submitted on 01 Sep 2026
425 points (90.6% liked)

Technology

87814 readers
3457 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] SpaceCowboy@lemmy.ca 8 points 2 days ago (1 children)

It's especially essential to mark the code as AI generated. AI makes mistakes just as humans do. Problem is AI makes different kinds of mistakes than humans.

A human will tend to forget to do something they were supposed to do. An AI will do a bunch of unnecessary shit.

Also you can tell that a human didn't put a lot of thought into some code (no comments, sloppy variable names) so you're more likely to say "yeah ok, I used to make that kind of mistake when I was younger" and just fix it. AI generated code will have all kinds of comments which normally makes you more hesitant before making a change. It looks like someone really thought through what they were doing, but in reality it's something generated by an LLM and no real thought was given to the code.

[–] boonhet@sopuli.xyz 1 points 2 days ago (1 children)

Also you can tell that a human didn’t put a lot of thought into some code (no comments, sloppy variable names)

Why is your code so messy that it needs comments everywhere? Comments should pretty much be reserved for special cases anyway

[–] SpaceCowboy@lemmy.ca 1 points 21 hours ago

Would that be cases be where you're doing something that might appear a little odd, but there is a reason for it to be that way? So if you see something that looks a little odd and there's a comment explaining it, wouldn't you be more likely assume that there's a reason for that code to be that way and it's probably intentional and not a bug?

And "self documenting code" is just something we say because we don't want to be bothered with writing comments, if we're being honest.