Reducing Assumptions, Exploding Your Code

Elegant scripts We’ve all written them, they fall together perfectly, they are readable, but they assume the happy paths. And world can be a happy place, but it’s also deeply flawed, imperfect and for your code to function in such world, even add value … it must handle the imperfection. Our nice, worldly example Our script will accept an ID as an argument. It will find an API token in setup.json and make a request to download a PDF from a remote server. The name of the downloaded file is determined by the server. ...

July 3, 2026 · Janko