克劳德的代码注释——太多还是刚刚好?
2 分•作者: lalaleslieeeee•13 天前
其他人是否注意到 Claude 在其工作中留下了大量大段的代码注释?
我的一些人类工程师对此表示不满,并指示 Claude 除非绝对必要,否则不要留下注释,但我很想知道大家的看法。就我个人而言,我写和读大量的代码注释,所以我对为什么这些特定的注释会冒犯我的同事感到困惑。
我有两个问题:
1. 它为什么会这样做?
2. 你对此有什么看法?
代理是否在为其他代理留下“面包屑”?这些注释是否能改善未来由代理生成的代码的输出,还是仅仅是一种风格选择?
我不想陷入关于代码注释总体用途的讨论。相反,我想知道代理留下的特定注释背后是否有某种目的。
查看原文
Has anyone else noticed that Claude leaves a lot of large code comments sprinkled throughout its work?<p>Some of my meat-based engineers have taken issue with it and directed Claude to never leave comments unless strictly necessary, but I want to know what others think. Personally, I write and read a lot of code comments so I’m confused about why these specific comments are so offensive to my fellow engineers.<p>I have two questions:
1. Why does it do this?
2. Do you have feelings about it?<p>Is the agent leaving breadcrumbs for other agents? Do they improve the output of future agent-driven code or is it just a stylistic choice?<p>I don’t want to devolve into a discussion about the purpose of code comments at-large. Instead I’m wondering if there’s a purpose behind the specific comments that agents leave