代码行数 (lines of code)
集里怎么说它
- 《AI时代衡量开发者生产力:Nicole Forsgren 谈怎么测才不撒谎》(00:05起):本集说它作为生产力指标一直很糟糕,而在 AI 时代彻底失效:因为大模型天生输出冗长,用它做指标极容易被系统操纵,进而引入复杂性和技术债;但现在它有了新用途——用来区分人写的代码和 AI 生成的代码,以此追踪代码存活率和质量。
- 《token 不是越省越好:用「可信吞吐量」优化 AI 开发的真 ROI》(09:49起):本集用 LOC 作类比:它值得追踪,但不应作为直接优化目标——删代码有时比写代码更有价值;token 用量同理。
- 《生成很便宜,审阅很贵:别再让 AI 垃圾代码上线了》(04:15起):本集引用 Dykstra 说代码行数应看作花费而非产出,并重申行数是垃圾指标、烧 token 多寡同样不代表产出。
① 提到它的金句
14 条
如果目标是更多的代码行,我可以提示某物写出有史以来最长的代码并添加大量的注释。
指向原始笔记的链接
If the goal is more lines of code, I can prompt something to write the longest piece of code ever and add tons of comments.
—— Nicole Forsgren · [12:56]
我认为把 token 花费作为吹嘘的指标存在真正的危险,这就像人们吹嘘他们一天写了多少行代码一样。
指向原始笔记的链接
I think there’s a real danger in making the token spend the metric to boast about, which is the same as when people boast about how many lines of code they’ve written in a day.
—— Max Schoening · [36:08]
虽然智能体让写数千行代码变得容易得多,但围绕代码的工作流根本不是为共同探索而构建的。
指向原始笔记的链接
while agents have made it so much easier to write thousands of lines of code, the workflows around code are not built for exploring together at all.
—— Nico · [12:20]
他们审查的不是 10,000 行代码;他们审查的是一个他们能轻松理解并逐步走过的工作流,所以他们确切知道它会做什么。
指向原始笔记的链接
And they’re not reviewing 10,000 lines of code; they’re reviewing a workflow they can easily understand and step through, so they know exactly what it will do.
—— Carlos González de Villaumbrosia · [35:08]
我们为工程师处理了超过 250 次自动化迁移,自动化迁移了约 900 万行代码。
指向原始笔记的链接
We handled more than 250 automated migrations, relatively 9 million lines of code automatically for our engineers.
—— Uday Kiran Medisetty · [01:04]
有可能存在一个只有 10 行代码的 PR,却花了很长时间,找出并修复了一个并发 bug。
指向原始笔记的链接
There can be a PR with only 10 lines of code that takes forever that finds and fix a concurrency bug.
—— Mingsheng Hong · [11:29]
任何做这行有一段时间的人都知道,代码行数是一个很糟糕的指标。
指向原始笔记的链接
Anybody who’s been doing it any length of time knows that lines of code is a terrible metric.
—— 嘉宾 · [69:59]
如果你在做某件事,而且你在搭建一个一万行的代码拐杖来绕过模型的缺陷,那你很可能在做错误的事情。
指向原始笔记的链接
If you’re doing something and you’re building like this 10,000 lines of code crutch to work around the model flaws, you’re probably doing the wrong thing.
—— Tibo Sottiaux · [42:29]
软件工程师的工作从来都不只是把代码行放到屏幕上。
指向原始笔记的链接
The job of a software engineer has never really been about putting lines of code on the screen.
—— Jonathan Kelley · [18:17]
如果你每一千行就检查一次,交付一万行代码会容易得多。
指向原始笔记的链接
Because like, it’s a lot easier to ship 10,000 lines of code if you check it every thousand lines.
—— Dex Horthy · [39:31]
该研究指出,评审者一次读超过 400 行代码就基本发现不了缺陷,一小时超过 450 行效率就完全断崖式下跌。
指向原始笔记的链接
And the study says that reviewers stop finding defects effectively if they try to read more than 400 lines of code in one sitting and their effectiveness completely falls off a cliff if they try to review more than 450 lines of code in an hour.
—— Laurie Voss · [03:54]
它真的会生成一万行代码,没有人能检查,也没有人知道它到底是不是在做对的事情。
指向原始笔记的链接
it generates literally 10,000 lines of code that nobody can inspect and nobody knows if it’s actually doing the right thing.
—— Jan Oberhauser · [04:37]
在某些情况下,人们甚至不再亲手写任何一行代码了。AI 实际上在写你的所有代码,审查你的所有代码,而你只是在引导这些智能体去做这些事。
指向原始笔记的链接
In some cases, people are not even writing any lines of code anymore. AI is actually writing all of your code, reviewing all of your code, and you’re just sort of guiding these agents to doing that.
—— Ben · [11:44]
根据我们的数据,现在每个开发者的代码行数比以前多了 218%。
指向原始笔记的链接
According to our data, it’s 218% more lines of code per developer than it used to be before.
—— Eli Cohen · [01:49]
② 出现在这些集
3 集
- 《AI时代衡量开发者生产力:Nicole Forsgren 谈怎么测才不撒谎》 — 作为概念
- 《token 不是越省越好:用「可信吞吐量」优化 AI 开发的真 ROI》 — 作为概念
- 《生成很便宜,审阅很贵:别再让 AI 垃圾代码上线了》 — 作为概念(提及)
③ 关联
点进去有真内容 —— 本页主要出口
智能体 · Lenny · Mingsheng Hong · Gabriel Martinez · Nicole Forsgren · Ironclad · 垃圾话 · DORA · 可信吞吐量 · 评估
