logoalt Hacker News

cadamsdotcom • yesterday at 10:02 PM • 0 replies • view on HN

> Don't be discouraged by how bad the first draft was. McPhee says the way to do a piece of writing is three or four times over, never once. This is good news.

This also applies to code. Taking your agent's first draft as a sample and doing a reimplementation often yields an even cleaner version.

Once you do ship, the drafts' weaknesses provide codebase signal. Where should you shore up the architecture - or create more reusability, where is the documentation inadequate. Do you need to bake invariants deeper in so they're harder to violate (custom lints, stricter validation...)

And yeah. Writing is clutch too.