Code
The beeps that boop. Posts about coding, the process, and the results.
(1 min read) As part of relaunching Codedrift on the Ghost platform, I wanted to make better looking tag sentences. This is the code that powers the tag segments in the "in X, but also Y, Z, & Q" format.
There's an extra comma when the tag count is
(6 min read) We use AWS pretty heavily at Taskless, with their compute-on-demand making it easy for us to scale our bi-directional API Gateway from zero to thousands of concurrent requests with no additional effort. It's truly wonderful; that is, until it's time to write tests.
The path most
(1 min read) I needed a reliable way to take the indexes from a staging instance and ensure they're replicated to production.
The following _MONGOSH code loops over every collection and then every index in the collection, creating a "createIndex" command for each combination. This makes it trival to
(1 min read) Your route.js / route.ts likely needs to force dynamic rendering.
export const dynamic = "force-dynamic";
Otherwise during the build process. Next will try and pre-render that page. That means it calls APIs, needs process.env, etc. It will do this even though route.* would lead you to believe
(3 min read) With the release of Expo 48, expo-community-flipper (gh) (npm) can finally declare its purpose fulfilled. A year ago, I was trying to debug redux inside of the Chrome Debugger and nearly lost my mind. It wasn't just a bad experience. It was an awful experience, defined by console.