Hacker News new | ask | show | jobs
by id_ris 1798 days ago
One idea I've been using recently is to start writing unit tests around a piece of code or functionality as I'm trying to use it. That technique narrows the scope to a single thing, and I'm forced to be explicit about what I expect. That and reading the source code are my gotos.