Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: logger Clear Filter

Logging in Go with Slog: A Practitioner's Guide

Logging in Go has come a long way. For years, the community relied on the simple standard log Copy package or turned to powerful third-party libraries like zap and zerolog . With the introduction of log/slog in Go 1.21 , the language now has a native, high-performance, structured logging solution designed to be the new standard. slog Copy isn’t just another logger; it’s a new foundation that provides a common API (the frontend) that separates logging logic from the final output, which is contr

Next.js is infuriating

Hey, it's finally happened. I've decided to write a blog post. And if you're reading this, I've also finished one. I have wanted to do this for a long time, but could never find the motivation to start. But you know what they say: anger is the best motivator. They do say that, right? Some context that's in the background We're going on a journey, you and I. But first, we need to set the scene. Imagine we're working for $COMPANY and one of our Next.js services did an oopsie. This being Next.js,

Next.js Is Infuriating

Hey, it's finally happened. I've decided to write a blog post. And if you're reading this, I've also finished one. I have wanted to do this for a long time, but could never find the motivation to start. But you know what they say: anger is the best motivator. They do say that, right? Some context that's in the background We're going on a journey, you and I. But first, we need to set the scene. Imagine we're working for $COMPANY and one of our Next.js services did an oopsie. This being Next.js,

Zig Interface Revisited

Achieving polymorphism via dynamic dispatch in Zig Unlike many languages that offer interface or virtual constructs, Zig has no built-in notion of interfaces. This reflects Zig’s commitment to simplicity and performance. That doesn’t mean polymorphism is off the table. In fact Zig has the tools to build interface-like behavior, making dynamic dispatch possible. Polymorphism in Zig: The Options Let’s backtrack a bit. There are ways to achieve polymorphism in Zig, depending on the use case: Ge