Given the nature of this blog, and where I usually share my content, chances are most of the people reading this probably already know everything I’m about to say here. That being said, I really wanted to write about this because I think it’s a big problem, and I think those of us who see what’s going on have a duty to call it out. If this post ends up being helpful to even one person, I’ll…
If you’re using Google Cloud Run (and, from what I understand, this also applies to Google Cloud Functions and Google App Engine standard ), Google will automatically create a trace in Cloud Trace for each incoming request, and inject the trace context into the request via the standard traceparent HTTP header. This is a cool feature… if you want to use Cloud Trace. If you want to send telemetry to…
tRPC is a TypeScript library that’s usually used to enable boilerplate-free and typesafe API calls between backend and frontend code in the same app, but it works great for service-to-service communication, too. I recently needed to implement service-to-service communication with tRPC (while building Konbini !) on Google Cloud Run , which makes this just a touch harder to do than usual, because…
Background: Clerk is a hosted authentication and user management product. I recently started writing E2E tests in Cypress for an app that uses Clerk for authentication, and there wasn’t anything out there to guide me, so here’s what I ended up with after fiddling with it for a bit. (Note: In my case, this is a Next.js app using Clerk’s Next.js SDK, but my understanding is that this code will work…
Whether it’s for work or play, most of us usually want some analytics on our websites, but the available options typically come with one or more pretty major downsides: Massive JavaScript payload — Most of the big analytics products have this problem. gtag.js is ~35kB minzipped, ~90kB uncompressed (at time of writing); some others are even worse. Yes, these days this is loaded asynchronously and…
I recently spent a good few hours getting Xdebug to work with my development setup (which is PhpStorm running inside WSL 2 on Windows 10, and PHP/Xdebug running inside a Docker container, inside WSL 2, with Docker Desktop ), so here I am writing up the surprisingly simple solution I ended up with — partially for my own future reference, but also to help out anyone who finds themselves in a similar…
One thing I’ve increasingly taken notice of recently is that a lot of developers, especially in corporate environments, seem to tend to put a very low priority on the DX of their projects. Documentation is poor or non-existent; setting up a working development environment is like pulling teeth. You’ve got tickets to close and you’re sure they’ll figure it out, so who cares, right? To be clear — I…
I recently built and released a small project, a web-based (HTML5 + Flash) game built using Haxe and Flambe. With the project as complete as it’ll ever be, I feel like sharing my experiences with the framework. For many reasons, it was an interesting framework to work with, and it brings some really fresh ideas to the table, but I don’t think I’ll be starting up another Flambe project soon. I…