←back to thread

923 points zh2408 | 4 comments | | HN request time: 0.875s | source
Show context
amelius ◴[] No.43743668[source]
I've said this a few times on HN: why don't we use LLMs to generate documentation? But then came the naysayers ...
replies(3): >>43744382 #>>43744780 #>>43751203 #
1. runeks ◴[] No.43744780[source]
Useful documentation explains why the code does what it does. Ie. why is this code there?

An LLM can't magically figure out your motivation behind doing something a certain way.

replies(2): >>43745102 #>>43748933 #
2. johnnyyyy ◴[] No.43745102[source]
Are you implying that only the creator of the code can write documentation?
replies(1): >>43745807 #
3. oblio ◴[] No.43745807[source]
No, they're saying that LLMs (and really, most other humans) can't really write the best documentation.

Frankly, most documentation is useless fluff. LLMs will be able to write a ton of that for sure :-)

4. bonzini ◴[] No.43748933[source]
Tell it the why of the API and ask it to write individual function and class docs then.