Theory of constraints, AI, and code review

2026年7月6日

AI 摘要 AI 生成,可能有误

该文章将约束理论应用于软件开发,认为代码在交付之前价值为零,而诸如编写行数或工单流转数量之类的指标都是虚荣指标。尽管人工智能让开发者能够比以往更快地生成代码,但实际的交付速度并未改变,因为真正的瓶颈(例如代码评审)尚未得到解决。因此,团队应当专注于缓解约束以提升公司层面的产出,而不是庆祝人工智能使用量的增长。

No matter how much code you create, it's zero value until you ship. Writing code, building features, moving tickets, they're all vanity metrics. None of it matters until users can do something they couldn't do before.

With AI you can produce more code faster than ever before. And it doesn't matter. I bet you're still shipping at about the same speed as before aren't you?

We can see this in the data! You can feel it by looking around. Everyone talks about using AI, burning tokens, and doing work, but you rarely see people talk about getting more done at a company level.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Swizec Teller

Hillclimbing your prompts

AI 摘要The article describes using hillclimbing to recursively self-improve a prompt for a blog article category classifier. After a few iterations, the classifier's precision improved dramatically from 28.7% to 70.6%, though recall slightly decreased from 51.7% to 47.3%. Overall, the author reports the approach worked wonderfully, with F1 score rising from 36.9% to 56.7%.

Software has no value

AI 摘要The article argues that software has no inherent value, humorously noting that nobody buys software just to admire it. Instead, software is merely a means to an end, and its true worth lies in what it enables people to accomplish.

How do we auto-approve and merge 60% of PRs?

AI 摘要The author, still overwhelmed by code review, explains how they raised auto-approved and merged pull requests to about 16% and aims to reach 60%. They argue that 100% automation isn't realistic because some changes are high-risk, require coordinated deployments, or need additional feedback before they're ready. They also note that manual review preserves valuable mentoring opportunities for junior team members.

No more tech debt

AI 摘要The author celebrates completing a design system migration for the first time in their career, finding the new math on big rewrites gratifying. They argue that at scale, a company is perpetually mid-migration or mid-rewrite, since organizations change every few months and systems built years ago become unfit for purpose. Therefore, how a team handles these migrations is what truly matters.

When code is cheap, judgement becomes the job

AI 摘要The author describes working at a 21-person engineering organization that ships code with remarkable velocity—merging multiple times per day, auto-approving 16% of pull requests, and letting AI write 97% of their code—while still maintaining reliability in a business where outages cost thousands of dollars. The central takeaway is that when AI makes writing code cheap and fast, human judgment becomes the engineer's primary job.