请问HN:你发现哪些有用的氛围编码模式?
在使用大型语言模型(LLMs)进行整个项目编码时,您是否发现了任何能够提高LLM输出质量的编码技巧?
我使用Claude模型编码了十几个微型项目,实际上让我惊讶的是,您可以在更短的时间内测试您的想法。虽然仍然很实用,但质量似乎在大约1万行代码(KLOC)后开始下降(如果整个项目是一个单文件的JavaScript应用,下降得更早)。这时我需要开始稍微关注一下。
这让我思考,是否应该像在任何与团队合作的代码库中那样编码,还是有一些方法可以帮助LLMs扩展,同时保持代码库的可理解性?
查看原文
When coding entire projects with LLMs, have you found any coding techniques that improved the quality of LLM output?<p>I've coded a dozen of micro projects using Claude models, actually mind-blown how fast you can test your ideas, in much less time. While remaining very usable, the quality seems to fall off after ~10 KLOC (much earlier if the entire project is a single file JS app). Then I need to somewhat start paying attention.<p>So it got me thinking, should I code the same way as on any codebase where I'd be working with a team, or is there something that helps LLMs scale, while the codebase remains grokkable?