Claude 写的生产代码质量标准应高于人类
"Production code written by Claude should have a higher bar than if it was written by a human" 💯
朋友,Boris Cherny 说 Claude 写的生产代码质量标准要高于人类,还讲了怎么用 Claude 写好生产代码,挺实用的。
Anthropic 的 Boris Cherny 表示,Claude 写的生产代码质量标准应高于人类。在 Anthropic 内部,Claude 写的生产代码有大量 lint 规则、测试、安全审查等保障,否则可能难以维护。使用最新模型或增加提示词努力程度可提升代码质量。
"Production code written by Claude should have a higher bar than if it was written by a human" 💯
"Production code written by Claude should have a higher bar than if it was written by a human" 💯 Boris Cherny @bcherny Hey ████, I think there is room for both. 1. Prototypes and other throw-away code can be treated as totally black box. If you’re going to throw it away anyway, and if the blast radius of it breaking is low, it doesn’t need to be perfect. 2. Production code written by Claude should have a higher bar than if it was written by a human. At Anthropic, we have many guardrails in place to make sure this is happening: lots of lint rules, lots of tests, Claude-driven end to end tests, Claude-powered fuzzers running daily, automated code reviews and security reviews, automated code refactoring, and so on. Without these, you can end up with a mess that is hard to maintain down the line. Luckily, the model makes it increasingly easy to do these well — run a few daily routines, use Claude Code Review, etc. Your job is to hold the bar on code quality. If Claude’s code doesn’t meet the bar, try: - Using the latest frontier model (Opus 5 or Fable 5.1) - Increase effort to high or xhigh - Invest in your CLAUDE.md and skills to succinctly teach Claude how to work in your codebase If all else fails, steer Claude more when you work with it, or have Claude fix accumulated debt and rewrite your codebase to make it easier to work with. Or, wait for the next model. Best, Boris 🔗 View Quoted Tweet 💬 39 🔄 6 ❤️ 202 👀 22595 📊 45 ⚡