惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
WordPress大学
WordPress大学
博客园 - Franky
The Cloudflare Blog
T
Tailwind CSS Blog
宝玉的分享
宝玉的分享
小众软件
小众软件
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
B
Blog
Y
Y Combinator Blog
V
V2EX
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
博客园 - 司徒正美
IT之家
IT之家
G
Google Developers Blog
C
Check Point Blog
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Disposable code is a psyop by people who don't maintain a...
Aditya Agarwal · 2026-06-21 · via DEV Community

There is an increasing trend on the internet stating that in the AI era, code longevity is “questionable if not problematic". The argument continues, “if AI can rewrite everything at 10x speed, why write long-lasting code at all?”

I believe that's an illusion. And I think it's mostly coming from people who don't maintain anything.

The Pitch Sounds Great If You Squint

The argument is appealing. AI rewrites happen quickly. Messy codebase. Why not just throw it all away and regenerate something cleaner when requirements change?

It's like freedom. It's the sensation of advancement. Nevertheless, it's also the engineering way to say "who cares about savings, just make more money".

Code Isn't Just Instructions

Here is what those who prefer "disposable code" overlook. An established codebase is not only a set of logical operations. It's a fossil record of every weird thing that went wrong.

That strange if statement on line 412? It was needed because during DST transitions, on Tuesdays, a null field is returned by one of our payment providers, still not sure why, nobody wrote that down.

Critics of the disposable mindset keep pointing out the same thing: rewritten systems lose implicit knowledge and edge-case handling. Because each rewrite causes some memory loss. Every rewrite is an amnesia event.

→ Edge cases don't live in tickets. They live in code.
→ Institutional knowledge isn't in someone's head. It's in the diff history.
→ "Just rewrite it" assumes you know what the old code was actually doing. You usually don't.

"10x Speed" Doesn't Mean 10x Understanding

For the sake of argument, let’s say AI can rewrite your service in a tenth of the time. Neat. But can it also re-architect the context? Re-create the trade-offs discussion your team had about using eventual consistency instead of strong consistency for that one specific workflow? Redo the three-month-long incident retrospective you iterated on and embedded in your retry logic?

Speed of production is not speed of comprehension. I can generate a thousand lines of code in minutes. Understanding a thousand lines of someone else's code still takes hours. AI doesn't change that ratio as much as people want to believe.

Typing was never the problem. It was about figuring out what to type in the first place. 🎯

Disposable Code Means Disposable Everything

This is what truly bothers me. Considering code as something that can be thrown away works only when you also consider your users, your uptime, and your institutional knowledge as something that can be thrown away as well.

Every rewrite is a risk window. Every risk window is a chance for regressions. Every regression is a user who trusted you and got burned.

If you're building a weekend project, sure, throw it away. You can rewrite it whenever a new model is released. No one will mind.

However, if you manage a product that is essential for people? If you are part of an on-call schedule? If customers are paying you and they expect your product to be functional even at 2 AM during a holiday? The "just rewrite it" philosophy is a luxury you cannot afford.

→ Rewrites don't eliminate tech debt. They reset the clock on discovering it.
→ Uptime isn't a feature. It's a promise. Disposable code breaks promises.
→ Users don't care how your code was generated. They care that it works. Every single time.

Who Actually Benefits?

I keep asking myself: who does the "code is disposable" narrative serve? Not the engineer who gets paged when the rewrite drops a critical edge case. Not the team who has to give up months of accumulated knowledge. Certainly not the users.

It serves people selling the idea that AI makes everything trivially replaceable. It benefits those who only showcase their work and never implement it in real scenarios. It serves people who start projects but don't maintain them. 🔥

Maintenance is the reality of a software product. And "disposable code" is a philosophy that only survives in the absence of maintenance.

The Actual Move

Write code that a human can understand and maintain, but also leverage AI to assist in code generation. Use AI to enhance the durability and maintenance of your software systems, not as an excuse for rebuilding everything from scratch every few months.

Durability isn't the opposite of agility. It's what makes agility sustainable.

The disposable code narrative isn't engineering wisdom. It's a psyop by people who never had to keep the lights on. on a Saturday morning.

What's the oldest piece of code in your codebase that everyone's afraid to touch — and what implicit knowledge would you lose if you rewrote it?