Skip to main content

Federico Calò's technical blog: guides and articles for developers

Practical guides and in-depth articles for developers, organised by series and by topic: start from the most read articles or filter by category below.

Technical Blog

Knowledge sharing and in-depth discussions on software development

Browse by Category

All Articles(1485)

Articles found: 1485. Page 1 of 75.

08-11-2026•12 min

03 - How many JavaScript files does an Angular SSR page download: counting them with Resource Timing

An article page requests 69 JavaScript files for 801 KB, the home page 51 for 638 KB. The HTML declares 3: the rest is requested by the running code.

Continue reading
08-11-2026•19 min

02 - The page that scrolls sideways at 320 px: two stacked culprits, 1fr and a monospace heading

At 320 px the /servizi page gave scrollWidth 399 against 320: two stacked causes, and a fix that seemed not to be enough because of a mistake of mine.

Continue reading
08-11-2026•13 min

01 - Measure an Angular SSR site before optimising it: LCP, CLS and TTFB with Playwright

On the home page the median TTFB is 187 ms and the LCP 1104 ms; on an article page the LCP rises to 2864 ms. Playwright script, three rounds and the ranges.

Continue reading
29-10-2026•14 min

06 - ArchUnit on a Project With Debt: FreezingArchRule

How to introduce an ArchUnit gate on a project with debt: FreezingArchRule measured in five experiments, and the line of text that silently zeroes the baseline.

Continue reading
28-10-2026•15 min

05 - ArchUnit: An Architecture Gate That Really Runs

ArchUnit 1.3.0 run on a real backend: the rule line by line, the real outcome, the timed cost and three ways the same gate looks green while checking nothing.

Continue reading
27-10-2026•17 min

04 - Use Cases With or Without an Interface: DTOs and Transactions

When a use case deserves an interface, where the transaction boundary falls and what readOnly really does, with the code run and two defects found.

Continue reading
26-10-2026•16 min

03 - Ports and Adapters in Spring Boot: Keeping the Database Out

A port in the domain and its adapter, with real code: the use case runs without a database and the shortcut with Page costs two archives on the classpath.

Continue reading
25-10-2026•16 min

02 - A Domain With No Dependencies: Value Objects as Java Records

A value object is a record that rejects impossible values. Real code, executed: what you gain, where it breaks, and why five of nine are not used.

Continue reading
24-10-2026•16 min

01 - Clean Architecture: Why Four Folders Are Not Enough

The four folders are not the architecture: the dependency rule is. I measure it on a real backend with ArchUnit actually run: six violations counted.

Continue reading
14-05-2026•12 min

Asymptotic notation: O, Ω, Θ explained without unnecessary symbols

Big-O, Omega and Theta: what they really mean when comparing algorithms. Measurable Python examples, the counter-example everyone gets wrong…

Continue reading
18-06-2026•10 min

05 - Bun production deployment: Docker + Kubernetes

Bun in production with Docker and Kubernetes: a multi-stage Dockerfile, building and pushing the image, YAML manifests, health checks, and rolling updates.

Continue reading
18-06-2026•10 min

04 - Bun + Hono: stack edge minimal

A minimal edge REST API with Bun and Hono: setup, JWT authentication, database and cache integration, and why this stack stays lightweight.

Continue reading
18-06-2026•10 min

03 - Bun nativo: SQLite + Redis client built-in

Bun's built-in SQLite and Redis clients: native usage, a cache pattern with SQLite fallback, a benchmark against Node.js, and production best practices.

Continue reading
18-06-2026•10 min

02 - Migrazione da Node.js a Bun: gotchas

Migrating from Node.js to Bun without surprises: package manager and lockfiles, CommonJS versus ES Modules, divergent APIs, async behavior, and native addons.

Continue reading
18-06-2026•10 min

01 - Bun vs Node vs Deno: benchmark realistico 2027

Node.js, Bun and Deno compared: startup time, HTTP throughput, memory use, and TypeScript compilation, plus how to choose a runtime for your project.

Continue reading
16-06-2026•10 min

06 - Multi-agent debugging: trace and observability

Implement end-to-end observability in multi-agent systems with distributed tracing, structured logging, and metrics. Why did agent A return the wrong result?

Continue reading
16-06-2026•10 min

05 - Agentic platforms self-hosted: cost analysis

TCO analysis: self-hosted Ollama on Hetzner VPS (€228/year) vs cloud APIs. Break-even within 2-3 months at >30K requests/month.

Continue reading
16-06-2026•10 min

04 - LangGraph vs Mastra vs CrewAI: decision matrix

LangGraph, Mastra and CrewAI compared: architecture, the same research agent built in all three, a feature table, and a decision tree for choosing.

Continue reading
16-06-2026•10 min

CrewAI in produzione: orchestrazione multi-agent

CrewAI orchestrates specialized AI agents with clear tasks, integrated tools, and persistent memory. Complete guide on production architecture…

Continue reading
16-06-2026•10 min

02 - Mastra framework: agentic TypeScript 2027

Mastra, an open-source TypeScript framework for AI agents: architecture, setup, a first agent, custom tools, memory, local LLMs with Ollama, and production.

Continue reading