Tutorials · how things workWhat’s actually
What’s actually
happening in there?
From arrays to React to Postgres: each tutorial opens one thing up and draws what goes on inside, step by step. Then it sends you to a problem where you use it.
Tracks
All tutorials · 145
- Why reading an array by index is instantFoundations / ArraysBasicsUnder the hood
- How a growing array stays fast when it fills upFoundations / ArraysWorking knowledgeUnder the hood
- Two pointers: walking an array from both endsFoundations / ArraysWorking knowledgeConcept
- Sliding windows: reuse the work you just didFoundations / ArraysWorking knowledgeConcept
- Prefix sums: any range total in one subtractionFoundations / ArraysWorking knowledgeConcept
- How a hash map finds a keyFoundations / Hash mapsBasicsUnder the hood
- Collisions, load factor and resizingFoundations / Hash mapsWorking knowledgeUnder the hood
- Counting, grouping and seen-before: three hash map patternsFoundations / Hash mapsBasicsConcept
- Build a hash map from an arrayFoundations / Hash mapsDeep diveBuild along
- Pre-order, in-order and post-order, drawnFoundations / TreesBasicsUnder the hood
- How a binary search tree stays searchableFoundations / TreesWorking knowledgeUnder the hood
- How a heap always knows the smallestFoundations / TreesWorking knowledgeUnder the hood
- Tries: a tree of prefixesFoundations / TreesWorking knowledgeUnder the hood
- Why balanced trees stay O(log n)Foundations / TreesDeep diveConcept
- Storing a graph: adjacency lists vs matricesFoundations / GraphsBasicsConcept
- BFS and DFS: same graph, different orderFoundations / GraphsBasicsUnder the hood
- Topological sort: an order that respects dependenciesFoundations / GraphsWorking knowledgeUnder the hood
- Shortest paths with DijkstraFoundations / GraphsWorking knowledgeUnder the hood
- Union-find: who belongs togetherFoundations / GraphsWorking knowledgeUnder the hood
- What the call stack does during recursionFoundations / RecursionBasicsUnder the hood
- Backtracking: try, undo, try the nextFoundations / RecursionWorking knowledgeConcept
- From memoised recursion to dynamic programmingFoundations / RecursionWorking knowledgeConcept
- Divide and conquer: split, solve, mergeFoundations / RecursionWorking knowledgeConcept
- Big O by counting, not memorisingFoundations / Big OBasicsConcept
- Where log n comes fromFoundations / Big OBasicsConcept
- Amortised cost: why push is O(1) on averageFoundations / Big OWorking knowledgeConcept
- Space complexity: counting memory, not just timeFoundations / Big OBasicsConcept
- What a Python list is in memoryLanguages / PythonWorking knowledgeUnder the hood
- Names, objects and the mutable default trapLanguages / PythonBasicsConcept
- How a Python dict keeps insertion orderLanguages / PythonDeep diveUnder the hood
- Generators: functions that pauseLanguages / PythonWorking knowledgeUnder the hood
- The GIL: what it locks and when it mattersLanguages / PythonDeep diveConcept
- Where Java puts your objectsLanguages / JavaBasicsUnder the hood
- How the garbage collector finds garbageLanguages / JavaWorking knowledgeUnder the hood
- equals and hashCode: the contract maps rely onLanguages / JavaWorking knowledgeConcept
- Inside Java’s HashMap, from buckets to treesLanguages / JavaDeep diveUnder the hood
- Pointers and references, drawnLanguages / C++BasicsConcept
- RAII and smart pointers: who frees the memoryLanguages / C++Working knowledgeConcept
- What std::vector does when it growsLanguages / C++Working knowledgeUnder the hood
- Move semantics: stealing instead of copyingLanguages / C++Deep diveConcept
- Closures: functions that rememberLanguages / JavaScriptBasicsUnder the hood
- What “this” means, decided by how you call a functionLanguages / JavaScriptWorking knowledgeConcept
- Prototypes: how objects share methodsLanguages / JavaScriptWorking knowledgeUnder the hood
- Promises and async/await, unwrappedLanguages / JavaScriptBasicsUnder the hood
- The event loop: why setTimeout(0) waitsLanguages / JavaScriptWorking knowledgeUnder the hood
- What TypeScript checks, and what it erasesLanguages / TypeScriptBasicsConcept
- Structural typing: shapes, not namesLanguages / TypeScriptWorking knowledgeConcept
- Narrowing: how TypeScript follows your ifsLanguages / TypeScriptWorking knowledgeConcept
- Generics without the fearLanguages / TypeScriptWorking knowledgeConcept
- From URL to pixelsFrontend / The browserBasicsUnder the hood
- The DOM, layout and paintFrontend / The browserWorking knowledgeUnder the hood
- Cookies, localStorage and sessionStorageFrontend / The browserBasicsConcept
- CORS: who the browser lets you callFrontend / The browserWorking knowledgeConcept
- How the browser caches a pageFrontend / The browserWorking knowledgeConcept
- The box model: content, padding, border, marginFrontend / CSSBasicsConcept
- Specificity and the cascadeFrontend / CSSBasicsConcept
- Flexbox by drawing itFrontend / CSSBasicsConcept
- CSS Grid: rows and columns at onceFrontend / CSSWorking knowledgeConcept
- What makes a page janky: reflow and repaintFrontend / CSSDeep diveUnder the hood
- Why React re-renders, and when it doesn’tFrontend / ReactWorking knowledgeUnder the hood
- useEffect: what runs, and in what orderFrontend / ReactWorking knowledgeConcept
- Keys and reconciliationFrontend / ReactDeep diveUnder the hood
- useMemo, useCallback and memo: when they helpFrontend / ReactDeep diveConcept
- Build a to-do app in ReactFrontend / ReactBasicsBuild along
- Where state should liveFrontend / StateBasicsConcept
- Controlled and uncontrolled inputsFrontend / StateBasicsConcept
- Server state vs UI stateFrontend / StateWorking knowledgeConcept
- Build a tiny state storeFrontend / StateDeep diveBuild along
- What’s inside an HTTP requestBackend / HTTPBasicsUnder the hood
- Build a REST API from nothingBackend / HTTPBasicsBuild along
- Status codes that tell the truthBackend / HTTPBasicsConcept
- Designing REST endpointsBackend / HTTPWorking knowledgeConcept
- WebSockets and server-sent eventsBackend / HTTPWorking knowledgeUnder the hood
- HTTP/1.1, 2 and 3: what changedBackend / HTTPDeep diveUnder the hood
- How passwords should be storedBackend / AuthBasicsUnder the hood
- Sessions vs tokensBackend / AuthWorking knowledgeConcept
- What’s inside a JWTBackend / AuthWorking knowledgeUnder the hood
- Sign in with another site: OAuth, step by stepBackend / AuthDeep diveUnder the hood
- Add sign-in to your APIBackend / AuthWorking knowledgeBuild along
- Environment variables and configBackend / NodeBasicsConcept
- How require and import find a moduleBackend / NodeWorking knowledgeUnder the hood
- What blocks a Node serverBackend / NodeWorking knowledgeConcept
- Streams: handling files bigger than memoryBackend / NodeDeep diveConcept
- Why some work runs laterBackend / JobsBasicsConcept
- Cron and scheduled jobsBackend / JobsWorking knowledgeUnder the hood
- Webhooks: sending and receivingBackend / JobsWorking knowledgeConcept
- What happens when you run a SELECTData / SQLBasicsUnder the hood
- Joins, drawn row by rowData / SQLBasicsUnder the hood
- GROUP BY and aggregatesData / SQLBasicsConcept
- Designing tables: normal forms in plain wordsData / SQLWorking knowledgeConcept
- Window functions: totals without collapsing rowsData / SQLDeep diveConcept
- How an index makes a Postgres query fastData / PostgresWorking knowledgeUnder the hood
- Reading EXPLAIN ANALYZEData / PostgresWorking knowledgeConcept
- Transactions and what isolation levels stopData / PostgresDeep diveConcept
- MVCC: how readers and writers don’t blockData / PostgresDeep diveUnder the hood
- Row locks and deadlocksData / PostgresDeep diveUnder the hood
- Store your users in PostgresData / PostgresWorking knowledgeBuild along
- Composite indexes and column orderData / IndexesWorking knowledgeUnder the hood
- B-tree, hash and inverted indexesData / IndexesWorking knowledgeConcept
- Covering and partial indexesData / IndexesDeep diveConcept
- LSM trees: how write-heavy stores indexData / IndexesDeep diveUnder the hood
- Redis data types and what they’re forData / RedisBasicsConcept
- Why Redis is fast, and what you give upData / RedisWorking knowledgeUnder the hood
- How Redis keys expireData / RedisWorking knowledgeUnder the hood
- RDB, AOF and losing dataData / RedisDeep diveConcept
- Build a leaderboard with sorted setsData / RedisWorking knowledgeBuild along
- DNS, step by stepInfrastructure / NetworkingBasicsUnder the hood
- TCP: handshakes, ordering and retriesInfrastructure / NetworkingWorking knowledgeUnder the hood
- What HTTPS adds: the TLS handshakeInfrastructure / NetworkingWorking knowledgeUnder the hood
- How a load balancer picks a serverInfrastructure / NetworkingWorking knowledgeUnder the hood
- How a CDN serves from nearbyInfrastructure / NetworkingWorking knowledgeUnder the hood
- Processes, threads and what the OS schedulesInfrastructure / LinuxBasicsUnder the hood
- The shell, pipes and exit codesInfrastructure / LinuxBasicsConcept
- Everything is a file: descriptors and socketsInfrastructure / LinuxWorking knowledgeUnder the hood
- Signals: how a process is asked to stopInfrastructure / LinuxWorking knowledgeConcept
- Virtual memory and page faultsInfrastructure / LinuxDeep diveUnder the hood
- What a container really isInfrastructure / DockerWorking knowledgeUnder the hood
- Docker images and layersInfrastructure / DockerWorking knowledgeUnder the hood
- How containers talk to each otherInfrastructure / DockerWorking knowledgeConcept
- Put your API in a containerInfrastructure / DockerBasicsBuild along
- What a CI pipeline does with your pushInfrastructure / CI/CDBasicsConcept
- Run your tests on every pushInfrastructure / CI/CDBasicsBuild along
- Rolling, blue-green and canary deploysInfrastructure / CI/CDWorking knowledgeConcept
- Feature flags: shipping code before turning it onInfrastructure / CI/CDWorking knowledgeConcept
- Cache-aside, write-through, write-backSystems / CachingWorking knowledgeConcept
- LRU and friends: what a cache throws outSystems / CachingWorking knowledgeUnder the hood
- Cache invalidation and stampedesSystems / CachingDeep diveConcept
- Build an LRU cacheSystems / CachingWorking knowledgeBuild along
- Why put a queue between servicesSystems / QueuesBasicsConcept
- At-most-once, at-least-once, exactly-onceSystems / QueuesDeep diveConcept
- Build a tiny job queueSystems / QueuesDeep diveBuild along
- Replicas: copying data for reads and safetySystems / ShardingWorking knowledgeUnder the hood
- Sharding: splitting data across machinesSystems / ShardingWorking knowledgeUnder the hood
- Consistent hashing: adding servers without reshufflingSystems / ShardingWorking knowledgeUnder the hood
- Hot keys and uneven shardsSystems / ShardingDeep diveConcept
- CAP in practiceSystems / ConsistencyWorking knowledgeConcept
- Strong, eventual and read-your-writesSystems / ConsistencyWorking knowledgeConcept
- Clocks, ordering and why timestamps lieSystems / ConsistencyDeep diveConcept
- How Raft agrees on a leaderSystems / ConsistencyDeep diveUnder the hood
- Merging edits without a referee: CRDTsSystems / ConsistencyDeep diveConcept
- Timeouts and circuit breakersSystems / ReliabilityWorking knowledgeConcept
- Retries and idempotency keysSystems / ReliabilityWorking knowledgeConcept
- Rate limiting: token bucket and sliding windowSystems / ReliabilityWorking knowledgeUnder the hood
- Backpressure: when consumers can’t keep upSystems / ReliabilityDeep diveConcept
- Graceful degradation: what to switch off firstSystems / ReliabilityDeep diveConcept
Learn it, use it, combine it.
1 · TutorialHow does an index work?You see what happens inside.
2 · ProblemSearch a sorted list fast.You use the idea to solve something.
3 · System designDesign a URL shortener.You combine it with other parts under load.