All 4,804 reports

YesClaude · 17 Oct 2024

This works REALLY well

simonw on Hacker News

In the thread “Unit tests as documentation”

Helped: Dumping unit tests into LLM to generate detailed usage documentation.

A trick I use a lot these days is to take the unit tests from an under-documented library, dump them into an LLM and ask it to write me detailed usage documentation. This works REALLY well. I've even occasionally done some of my own reviewing and editing of those docs and submitted them back to the project. …