All articles
58 articlesGuides, comparisons and analysis for people building with modern technology.

Graceful Shutdown in Node.js: The Complete Sequence
A reliable Node.js shutdown is an ordered process: mark the instance unready, stop accepting work, drain active requests and jobs, close dependencies, and exit before the platform force-kills the process.

Modular Monolith vs Microservices: The Trade-off Nobody Draws
A modular monolith is usually the better starting point. Microservices earn their cost when teams need genuine deployment and data autonomy—and can operate distributed systems well.

Back-of-the-Envelope Estimation for System Design, With Worked Examples
A practical method for system design estimation: state assumptions, calculate average and peak load, size storage and bandwidth, and use three worked examples to identify the architectural pressure points.

How to Write a Technical Design Doc That Gets a Decision
A useful technical design doc explains the problem with evidence, defines measurable goals, compares realistic options, and asks named reviewers for a decision by a clear date. Here is a practical structure for writing one.

How to Budget Retrieved Context in a RAG Pipeline
A practical RAG token budget accounts for instructions, the query, retrieved chunks, formatting, and output allowance. Build the budget around your model and retrieval workload instead of copying a universal chunk size.

Rethinking Kababjees: redesigning a food group's website
An unsolicited concept redesign of kababjees.com: auditing a 21 MB homepage, building a dark editorial design system around the original logo, and shipping a static Next.js site that scores 98–100 on Lighthouse.

Why Token Counts Differ from Word Counts
Word count is a poor substitute for an LLM token count. Learn why model encodings, punctuation, code, and language change the result—and how to measure the input you actually plan to send.

How to Get Reliable JSON Output from an LLM
To get reliable JSON from an LLM, distinguish valid JSON from schema-valid data. Use a provider's structured-output feature when supported, validate the result, and handle refusals, truncation, and application-level errors explicitly.

XML Tags vs. Markdown in LLM Prompts: When to Use Each
Markdown headings make prompts easy to scan; XML-style tags make content boundaries explicit. Learn when to use each, when to combine them, and why neither format guarantees better model output.

How to Calculate the SaaS Break-Even Point
Calculate SaaS break-even customers by dividing fixed monthly costs by contribution per customer. Learn how to classify costs and interpret the result without treating it as a forecast.

How to Structure System Prompts for Production LLM Applications
Structure production LLM prompts around distinct responsibilities: role, task, context, input, constraints, output format, and examples. Learn when to use Markdown or XML, how to preserve wording, and what structure cannot guarantee.

Best Value Local AI Hardware and Models for Every Use Case
Choose a value-focused local AI setup for everyday use, coding, creative work or automation by matching hardware memory and model capabilities to the workload.