Recent Posts

31 Oct 2025

📌 llm4s: Type-safe LLM infra for Scala that makes runtime errors compile-time

8,915 words, ~35 min read
Deep-dive into llm4s, a production-grade Scala framework for building LLM applications. From type-safe error handling to provider abstraction and context management, it covers agent orchestration and shipping reliable LLM systems in Scala.
18 Oct 2025

📌 Effect polymorphism in Scala: write once, choose your runtime later safely now

4,043 words, ~16 min read
Deep-dive guide to effect polymorphism in Scala using F[_] and type classes. Write generic code that works with Cats-Effect or ZIO, then swap runtimes later. Learn EffectSystem patterns, Kleisli composition, and examples from flowforge.
08 Oct 2025

📌 Kleisli for data engineers: the category trick that makes pipelines compose

3,795 words, ~15 min read
Learn Kleisli from first principles to compose effectful data pipelines with Cats or Cats Effect, wiring sources, transforms, and sinks with clear errors, observability, and easy tests. Includes a Scala example you can lift into prod.
30 Sep 2025

📌 Compile-time data contracts: Catch schema mismatches at compile time in Scala 3

8,618 words, ~34 min read
Build Scala compile-time data contracts with macros and TypeInspector patterns so schema drift fails at compile time, not midnight in prod. Includes patterns for required vs optional fields and compile errors that block bad data early.
28 Jun 2025

📌 Functional utilities for data engineering: stop repeats in Scala pipelines now

13,309 words, ~53 min read
Build reusable Scala utilities for data engineering on GCP, covering CDC, Delta maintenance, schema evolution, GCS helpers, affected-partition strategies, and error handling. Includes patterns for safe ops and repeatable pipelines.
02 May 2025

📌 Forecasting at scale: demand prediction with Random Forests and neural nets

688 words, ~2 min read
Building a demand forecasting system with Random Forest, ANN, and hybrid time-series models on Hadoop and Spark. Covers data ingestion, feature engineering, model training, validation, and rollout for large SKU catalogs and seasonality.
19 Feb 2026

Build the harness, not the code: a staff/principal engineer's guide to AI-agent systems

10,910 words, ~43 min read
How to design reliable AI-agent systems using harness engineering, skills, shell execution, and context compaction. A practical tutorial with real examples for OpenAI Codex and Claude Code ecosystems.
05 Feb 2026

Build a code review operating system: prevent 2 AM incidents in serious codebases

23,292 words, ~93 min read
A code review operating system for serious codebases: A practical JVM and Scala focused code review system: severity rubric, CI-friendly PR workflow, SOLID + FP patterns, checklists, Mermaid diagrams, and comment templates.
24 Jan 2026

Adding a serverless backend to Hugo: How I built payment flows without losing static site speed

4,578 words, ~18 min read
Hugo is static HTML, so payments and webhooks need a backend. I added a Workers API with Effect TS, D1, and PayU/Cashfree while keeping GitHub Pages.
15 Dec 2025