TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Why can't we have LLMs writing documentation?

2 点作者 simssousa153 个月前
Everyone says documenting code is important yet no one seems to want to take the time to write such documentation. My question is wouldn't it be possible to just let a LLM keep reading your repo and generate the necessary documentation? People already use LLMs to code and are trying to make LLMs work as full developers. If we expect them to work as independent developers in the near future, can't we get them to at least write useful documentation first?

5 条评论

jfengel3 个月前
I&#x27;d break things down into two broad kind of documentation:<p>1. Comments on code<p>2. User-facing manuals<p>There&#x27;s no need for an LLM to write the former. Comments are left by a person to explain decisions when they&#x27;re no longer present. LLMs don&#x27;t go away. You can always ask the LLM why the code was written that way.<p>As for users... they famously don&#x27;t read. UX designers take that into account, and try to make their interfaces self-documenting. A user who can&#x27;t figure it out from the design in front of them probably won&#x27;t find the right part of the manual to read, either. They&#x27;d rather dive in than read cover-to-cover.<p>The &quot;for dummies&quot; books seem to sell well. I wonder if you could get an LLM to write those.
maxbaines3 个月前
This is the first thing I do when using LLM&#x27;s to create code. So we can and I do have LLMs writing documentation.<p>In my domain IIoT, I even created a yaml structure to make this easy. <a href="https:&#x2F;&#x2F;unsframework.com" rel="nofollow">https:&#x2F;&#x2F;unsframework.com</a> (wip)
beardyw3 个月前
Writing documentation after coding should strongly feature <i>why</i> things were done the way they were. How could an LLM do that?
评论 #43229162 未加载
dave44203 个月前
I expect the LLM would need more context to make the documentation useful for readers.
austin-cheney3 个月前
Good documentation is no different than good software architecture. Neither are challenging yet most people in the work force cannot do either effectively, because these things require extensive practice making original organizational decisions. Practice isn’t something that can be wished away by some ineffective hallucination tool.<p>If you think that lack of experience can be replaced by AI then good luck. Microsoft has very recently lost all faith in AI to do any of this for reason.
评论 #43228691 未加载