Knowledge base online

Build the judgment
behind the answer.

A focused engineering workbench for system design, coding patterns, engineering field notes, and production lessons.

58CORE NOTES
331DAILY DIGESTS
06KNOWLEDGE TRACKS
KNOWLEDGE_GRAPH.V1LIVE
COREENGINEERING
JUDGMENT
01SYSTEMS
02CODE
03FIELD
NOTES
04SIGNAL
DEPTH > MEMORIZATIONUPDATED CONTINUOUSLY
Portrait of Yao Xiao

Founder & Technical Writer

Yao Xiao

Staff Software Engineer
at Uber

LinkedIn

THE PERSON BEHIND SYSTEM CRAFT LAB

I build platforms and write about the engineering decisions behind them.

My work spans storage, streaming, logistics, and advertising systems. System Craft Lab brings that perspective to system design, AI fundamentals, and practical engineering guides.

Previously at Coupang · DoorDash · eBay · Microsoft · Amazon

Read my field notes

Independent publication. Views are my own.

CURRICULUM / 06 TRACKS

Choose your learning vector

Move through a track or cross-link ideas as your interview loop demands.

LIBRARY / RECENTLY ADDED

Continue exploring

View searchable index ↗
Coding

Most Frequently Co-Purchased Items

Find each product's most frequent shopping-basket companion with exact pair counts, deterministic ties, and tested Java and Python solutions.

hash-tableco-occurrencecounting
Engineering Field Notes

NAT: Addresses, Ports, and Connection State

Trace packet translation and return-path state, calculate hot-destination port capacity, and design NAT egress around failure boundaries, observability, and explicit access policy.

networkingnatinfrastructure
AI Foundations

Training, Validation, and Test Sets

Give fitting, model selection, and final evaluation separate data roles, then reproduce a small experiment without allowing test results to influence the chosen procedure.

artificial-intelligenceexperimental-practicemodel-evaluation
AI Foundations

Case Study: From a Vague Request to a Verifiable AI Task

Turn a troubleshooting-assistant proposal into a bounded document recommendation task, with explicit evidence, a baseline, permissions, and testable acceptance criteria.

artificial-intelligenceproblem-framingmodel-evaluation
AI Foundations

Business Metrics and Model Metrics

Connect prediction quality to service outcomes, compare errors under explicit costs and capacity limits, and measure whether a model improves the work it supports.

artificial-intelligencemodel-evaluationmetrics
AI Foundations

When You Don't Need Machine Learning

Recognize tasks that are better served by rules, queries, search, optimization, or human review, and compare the evidence and operating costs before adding a model.

artificial-intelligenceproblem-framingengineering-decisions