this post was submitted on 31 Aug 2026
129 points (96.4% liked)

Programming

28428 readers
162 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 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] greasewizard@slrpnk.net 25 points 1 week ago (2 children)

Its hilarious to me that before AI, I would suggest we refactor our code base to make it more readable and easier to understand and would get all the excuses. "Oh we don't have the time". " we could introduce bugs". "We would need to test that"

Now when I mention to make the code easier for an LLM to understand, they're chomping at the bit for it.

[–] deegeese@sopuli.xyz 8 points 1 week ago (3 children)

Before AI, refactoring was expensive, high risk, unclear payoff.

With AI, it’s cheap, higher risk, obvious payoff.

[–] RichardDegenne@lemmy.zip 2 points 1 week ago (1 children)

The obvious payoff being that engineers with an actual work ethic get to fix the mess.

[–] Reality@feddit.org 2 points 1 week ago

I don't care about work ethic, I want clean and tested code, that performs well and is easy to extend and replace

[–] olafurp@lemmy.world 1 points 1 week ago

I also got to refractor a major headache away, it was finally cheap enough to do all in one go instead of putting in a new pattern and incrementally change. The "Do one, do one, now repeat" prompt pattern works really well for these.

[–] staircase@programming.dev 1 points 1 week ago* (last edited 1 week ago)

cheap at first

[–] FizzyOrange@programming.dev 2 points 1 week ago

Yeah... when the only documentation is CLAUDE.md...

Still you can see why right? Improving docs/understandability for AI is good for them - they get more capable AI. Improving it for humans only helps other people, which is less of a priority.