this post was submitted on 31 Jul 2025
17 points (94.7% liked)
Programming
21924 readers
712 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 !webdev@programming.dev
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
And this is also a potentially very dangerous difference between AI generated code and legacy code written by humans:
Legacy code might look messy and incomprehensible at first, but any part of it very probably was written for real reasons and in logical steps, and therefore is intelligible (though with effort).
On the other hands, AI generated code will look plausible, especially to the person who wrote the prompt, but in fact it was never understood by anyone.
Yet to the engineering manager or laymen, both look the same.
And this difference is going to bite much harder if the code runs for some longer time and is used in critical infrastructure systems.
Messy code by humans generally isn't logical because it went through multiple modifications/deletions that are not visible anymore.
I'm not sure that bad devs are much better than AIs, and they're the ones using them to code now. I think the problem stems from not giving a shit about code making sense, and AIs just increase the problem.
I mean, I saw code that was essentially saying things like "if True == False" and when asking about what the purpose of the block was to the original dev (who wasn't even such a bad dev), they just had no idea. Humans are chaotic and nonsensical and messy code comes from that, not from a weird logic, and you can't comprehend it most of the times because it's a mix of confusion, lack of planning, mistakes and laziness.