Bubble Foundry

Failing Quickly

by Peter.

Startups like to talk about failing quickly, which is basically the idea that you get your business out there as soon as possible so when you inevitably have to change directions you haven’t wasted a lot of time and work. It makes a lot of sense.

However, you can even apply the practice to your actual code: I’m doing some operations based upon a mixture of conditions, some determined by checking in-memory values and others only determined after (potentially) expensive file system operations. Naturally, I check the in-memory values first and only if they are true do I do the expensive file system checks.