r/ProgrammerHumor • • Oct 16 '26

Meme driverlessTaxiDriver

Post image
3.9k Upvotes

180 comments sorted by

View all comments

Show parent comment

19

u/AnUninterestingEvent Oct 16 '26

The threshold for what is "maintainable" has widened exponentially with AI agents. As long as your agent understands it, it's effectively maintainable. If it gets into a state that's not maintainable even by your AI (which is hard to do), you can just tell the AI to refactor it to be more maintainable lol.

8

u/waraholic Oct 16 '26

Once your code is that far gone the AI is going to make regressions trying to fix it and you'll have customer impacting bugs and a loss of trust in your product.

-1

u/AnUninterestingEvent Oct 16 '26

Perhaps, but this is such an easy thing to avoid with maintainability rules in an md file.

5

u/waraholic Oct 16 '26

Write maintainable code. No mistakes.

Forgot that part, thanks.

-4

u/AnUninterestingEvent Oct 16 '26

The entire purpose of a maintainable code base is to make life easier for the humans maintaining it. If humans are no longer reading or maintaining the code, then who is the maintainability for? What's the point? It doesn't make the end product work better. If the human brain could process unorganized code as quickly and accurately as AI can, maintainability would never have been a priority to begin with.

That being said, I prefer my agent to follow a certain structure and certain set of rules because it's just how I've always done things pre-AI. Plus I assume that AI is better at reading organized code. But I honestly have no evidence that it matters.

-1

u/get-rekt-lol Oct 17 '26

Downvoted for no reason

0

u/RekTek249 Oct 16 '26

If it makes regression then your tests aren't good enough.

1

u/Ange1ofD4rkness Oct 16 '26

You do have a point, I guess part of it is that I seemed to have developed a skill that I need to understand how the code works that I write. So if I don't understand the AI's code, I don't trust it, and question if it can really debug itself (and fix itself). Especially has some stuff co-pilot has thrown me as suggestions have been dead wrong

That all said, I do worry it could always get to that point. Like AI keeps fixing it but makes it worst and worst (like from a maintenance side). The old put a band-aid on it, instead of fixing the root problem, which can result in much costlier and time consuming. Where AI finally can't fix it, and now you have a mess

(that or it gets more expensive to fix each time due to token usage)

0

u/Nixinova Oct 17 '26

I've yet to see an AI that can maintain without near immediate degradation.