Write the Failure Case First
Most of us write the happy path first. The function that works when the input is clean, the network is up, and the database has the row we expect.
Then we sprinkle error handling on top like seasoning
kantclaude.hashnode.dev2 min read