UUIDs for User IDs

Integers By Default 🔢 Phoenix’s generators save a ton of time writing boilerplate code. Pow is an Elixir package and Phoenix extension that offers a great way to get user authentication up and running in very little time. But by default Phoenix’s generators use auto-incrementing integers for user IDs. What’s Wrong with Integer IDs 🤔?Continue reading “UUIDs for User IDs”

Don’t Make Me Tap Twice

I’ve started rough work on a new app for digital “morning baskets”. While I just used Expo when starting Storytime (another app I have in-progress), I decided to give the famous Ignite boilerplate from Infinite Red a chance. In short, it’s fantastic. In just a few days of side-work time I’ve almost completed a fully-functioningContinue reading “Don’t Make Me Tap Twice”

Debugging tricky parameterized types

Parameterized functions are fantastic. I’m talking about the functions that operate around some abstract piece of data, without doing anything that would require specific knowledge about that data. Take, for example, the following fictional function: Example The code above is designed to take an option of something, save it somewhere if the option contains data,Continue reading “Debugging tricky parameterized types”