His work pattern: LLMs test and rewrite legacy modules until users feel the speed
At work he prompts LLMs to write extensive tests for legacy modules, rewrite them cleanly, and pass the tests again; users report the software suddenly responsive in under a second and customers are happy.
How it works
- He prompts LLMs to write extensive tests for legacy modules
- Rewrites them cleanly
- Passes the tests again
- Users report the software suddenly responsive in under a second
Why it’s worth knowing
Tests first is what makes an agent rewrite of legacy code safe.
Where it’s from
Summarized from a public post on news.ycombinator.com. See the original ↗