posts

All Posts

Thoughts on code and poetry.

Giving AI Eyes and a Keyboard in the Terminal

How I built mcp-tuikit to give AI agents a virtual terminal, enabling them to visually test TUIs, take screenshots, and send keystrokes.

k6 Metrics to Datadog via Logs, StatsD, and OTEL

How we wired k6 to send metrics to Datadog using logs, StatsD, and OpenTelemetry, including the extra bits needed for AWS Fargate.

A TypeScript RESTful API Using Design Patterns, Creational

Let’s talk about creational design patterns—arguably the foundation of any well-architected system. At their core, these patterns focus on how objects are created. Why does this …

A TypeScript RESTful API Using Design Patterns

Design patterns represent foundational approaches to recurring challenges in software architecture. They encapsulate best practices in object-oriented design, providing flexible, …

Moving from Google Cloud and Wordpress to Github Pages

Hi. I am gradualy moving from a Google Cloud and Wordpress, to Github Pages. Please have patience with me. All posts will be published back as soon as possible. Until then, you can …

Flyweight Pattern

Sometimes the problem isn’t CPU — it’s memory. You have thousands or millions of tiny objects that mostly look the same, and your heap starts to complain. The Flyweight pattern is …

Facade Pattern

You may have used a library that feels like “call this one function and everything just happens”. Behind that one function, there’s usually a lot of orchestration. The Facade …

Decorator Pattern

Think of adding toppings to a pizza or filters to a photo: you start with something simple, then wrap it with extra behavior. You don’t need a new “class” of pizza for every …

Composite Pattern

Files and folders. Menu items and submenus. Shapes and groups of shapes. We constantly work with part–whole hierarchies, and we’d really like to treat “a single item” and “a group …

Bridge Pattern

Sometimes your class hierarchy starts to explode: circles vs squares, vector vs raster, light theme vs dark theme… and suddenly you’re staring at a grid of combinations. The Bridge …