For a complex project, how do you weigh the time saved generating code against the time spent reviewing, repairing, and maintaining it? Does that change how you think about claims that AI can replace developers?
Does fixing AI-generated code sometimes take longer than writing it?
Answers
It certainly can take longer. Code that looks finished may have problems across several layers, so fixing one bug can expose another. You also have to understand what the code is supposed to do before deciding whether a fix is safe.
That cost matters especially for a library with unusual behavior, where there may not be a familiar pattern to compare against. I would count review, testing, refactoring, and later maintenance as part of the work, not just the time it takes to get a first version running.
Reply to this answer
The workflow matters a lot, though. Give the model a defined task, existing patterns to follow, and tests that check the behavior you actually need. Review and refactor before merging rather than asking for a whole system and hoping it hangs together.
That setup takes work too. A test suite can catch regressions, but passing tests aren't proof that the design is maintainable or that the tests cover the right cases. The useful comparison is the total effort with that setup versus doing the same work another way.
p.386~drivnexo:
So a quick first draft only counts as a saving if the checking and cleanup don't eat it up?
5m!gimbalspool_824:
Right. Include the effort to create and maintain the checks, especially if they're being built just for that workflow.
Reply to this answer
I'd be careful about treating every project as equally hard. A bounded task with familiar code paths is different from a new library where most behavior is specific to the problem. Without knowing the task, instructions, and review process, it's hard to say whether a bad result came from the model, the workflow, or both.
Reply to this answer
Staffing claims are a separate question from whether generation is useful. If a senior developer has to supervise every change and repair a lot of it, a subscription hasn't replaced the responsibility for design, review, or maintenance.
Management might still prefer faster initial delivery, but that can shift work into cleanup later. The tradeoff depends on the quality expected and who has to maintain what gets shipped.
Reply to this answer
If the generated code is tangled, compare repairing it with a small rewrite before committing to either. Rewriting isn't automatically cheaper, but neither is preserving code just because it already exists.
Reply to this answer
Add your answer
Answers are reviewed before publication.
c.573~mavtrelo:
And if a repair keeps bringing back an earlier bug, the review burden doesn't disappear just because the next draft was quick.