Planned App-solescence

Planned App-solescence

Today is both a good day and a bad day. Bad because I finally have to come to terms with the game I spent four years making is no longer available on the App Store or the Google Play Store which effectively means you can’t run it anywhere anymore. The bittersweet part is that it’s given me the excuse to open source the game as well as my previous game project Solaria Tactics.… Read more »

Tradeoffs in Testing

I’m finally getting around to putting down in words the testing philosophy I’ve developed over the years. Some of it might rock the boat a bit, other parts may be obvious to some folks, but what I’d like you most to take away is a reflection on your own testing philosophy and the tradeoffs your making. There’s no free lunch. Choosing how much time to invest in testing is all about balancing how confidently you can say your program is doing what you intend to and how fast you can modify or add to your program.… Read more »

Testing Next.JS with Cypress and Mock Service Worker

If you’re running a Next.js app and want to test it with Cypress you probably noticed a problem when it came time to test a server side rendered page. There’s no built in way to mock out requests made in getServerSideProps. When I ran into this and searched around for solutions I found this article that has a good explination of the problem (and diagrams), but I wasn’t satisfied with any of the solutions.… Read more »

What language am I writing again?

Posted on

Have you ever had that brainfart moment when you’re writing code and forget what syntax you’re supposed to be using? An example is helpful: This is from a recent project that used React + Typescript + GraphQL + Styled Components which is a prime combo for this sort of situation. At bare minimum we have these languages all represented in the same file. Typescript GraphQL CSS React Depending on how you’re counting, you could also add in Javascript (since you need to know it anyways for Typescript), HTML (since the React syntax is built on it), and even the interpolated strings like ${address.… Read more »

How Hard is your Email to Say?

Posted on

You’re at the doctors office, talking to an aquaintence, or ordering something on the phone and they ask the question: What’s your email? Depending on your name, age, and your life choices this can be a breeze or the dreaded question. How long does it take before you have to break out the phonetic alphabet? How many times do you have to repeat it? Today we’re going to come up with a scoring system to measure how painful your email is to tell someone.… Read more »