代码行数 (lines of code)
集里怎么说它
- 《AI时代衡量开发者生产力:Nicole Forsgren 谈怎么测才不撒谎》(00:05起):本集说它作为生产力指标一直很糟糕,而在 AI 时代彻底失效:因为大模型天生输出冗长,用它做指标极容易被系统操纵,进而引入复杂性和技术债;但现在它有了新用途——用来区分人写的代码和 AI 生成的代码,以此追踪代码存活率和质量。
① 提到它的金句
7 条
如果目标是更多的代码行,我可以提示某物写出有史以来最长的代码并添加大量的注释。
指向原始笔记的链接
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]
任何做这行有一段时间的人都知道,代码行数是一个很糟糕的指标。
指向原始笔记的链接
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]
② 出现在这些集
1 集
③ 关联
点进去有真内容 —— 本页主要出口
Lenny · Nicole Forsgren · DORA · SPACE · DevEx · 心流状态 · 反馈循环 · 认知负荷 · 技术债 · 幻觉
