perf overhead on context flattener?Someone shared this image above. At first glance, I wasn’t sure about the perf implications — so let’s break it down from first principles :D Let’s deconstruct this monster Here’s the code: // Function to flatten React Context Providers. const flatte...Aug 14, 2025·3 min read·44
How to get sorted set in descending order with node rediseverything is zRange nowFeb 4, 2024·1 min read·88
Creating UDP server from scratch in ZigAt a high level this is how UDP servers work: Create a socket Bind the socket to a specific address and port (through the OS) Listen for messages at that specific address and port Here's how we do these steps in Zig: Create a socket We need to t...Jan 7, 2024·3 min read·4.8K
Why we use containersThere are a metric shit ton of things that interact with an application that you run locally - your OS, system & env variables, software deps, & configs. It's super common in the software industry to run into problems like: "This works on my computer...May 29, 2023·1 min read·39
Getting closure with ReactWhat's a closure? Closures are like a backpack for functions. The backpack holds all of the values the function needs from its original environment, even if it's called in a different place. It gives functions access to all of its belongings no matte...Apr 22, 2023·2 min read·127
Building Typesafe Full Stack App w/ Apollo Server 4, Railway, Prisma, Pothos, Next, & TS (part 1 - setting up the server)The best way to get typesafety in GraphqlJan 8, 2023·13 min read·1.7K
6 Code Smells In React I Look Out ForI've recently undergone analyzing and improving a React application's performance and have noticed some pretty serious code smells that affect both code quality and performance. Here are some code smells that I watch out for in a React application: ...Jan 6, 2023·2 min read·574