跪拜 Guibai
← Back to the summary

AI-Generated Code Is Creating a Technical Debt Crisis No One Can Clean Up

I am a software development engineer with seven years of experience. Recently, while using AI to complete work, I suddenly discovered a problem: we are all using AI wrong.

These are the four phases I went through using AI to complete work. Now a problem has emerged — and it's probably not just me. Some large companies are also frequently throwing around the term "technical debt." With nothing better to do today, I asked Qwen how it understands the term.

image.png

That's when I realized:

The programmers that companies still keep around are needed to take responsibility for AI's output, but over time you'll find you can no longer bear that responsibility. On one hand, after not writing code yourself for a long time, your skills have mostly faded. (When you first learned to code, didn't your teacher tell you not to just watch, but to practice more? Now the "doing" is just talking to AI.) On the other hand, AI's output might be hard to understand or even contain things you don't know.

Many self-media outlets hype the idea that everyone is a product manager, that you can just talk casually and let AI build a product. Honestly, it's possible, but business iteration will likely become unmanageable.

Actually, I feel the current AI code generation is the same as the old low-code/no-code platforms. The system generates the code for you, but you have no idea how the code is actually implemented. It's perfectly fine for a one-off project, but unreliable for a good product that needs iteration.

So here's the conclusion: AI should not replace programmers; it should assist programmers. Repetitive, utility-type code can be generated by AI, but core business logic should be written by you — or at the very least, you need to fully digest any core business logic that AI generates.

The above content is only my personal understanding, not official or professional. Just take a look. If you have different opinions, feel free to comment and discuss.

Comments

Top 4 of 8 from juejin.cn, machine-translated. The original thread is authoritative.

流不往

I think it's because you, as a developer, haven't set proper constraints for your project. Why do so many problems arise? First, establish constraints for the overall project architecture, tech stack, and your company's project standards. Then, for requirements, briefly describe the requirement boundaries yourself, and have the AI produce a corresponding requirements proposal plus a technical proposal. If it looks fine, let the AI implement it. If there are issues, revise the requirements and technical documentation, then implement. After the AI finishes writing, use AI for code review. If you're still uneasy, have the AI write unit tests. With this whole process, I think the probability of errors drops significantly. At worst, there's still the testing phase left.

用户2794361431003

With constraints, you can still write defensive code.

用户238183588344

Going through that whole set of actions, you might as well just write the code yourself—it's faster.

张也行

AI introducing problems that aren't caught in time is a human issue. Being unable to even troubleshoot the code is also a human issue.

webxue

Wait until you're juggling three tasks at once, then you'll know whether you have time to review.

webxue

AI produces output way too fast; the speed of human review simply can't keep up. It seems like it saves us time writing code, but the time spent on later troubleshooting and maintenance might double or more.

用户238183588344

That's exactly how it is.