Lessons
134 lessons in programming · page 5 of 6
- Programmingadvanced
Locks and Synchronization
Mutexes, condition variables, semaphores, and reader-writer locks — the primitives that make concurrent code correct. Understand the four Coffman deadlock conditions, how lock ordering prevents them, and why contention turns a performance win into a bottleneck.
9 steps·~14 min - Programmingadvanced
Async, Event Loops, and Futures
Threads are not the only model for concurrency. Learn how blocking vs non-blocking I/O works, how the event loop and reactor pattern scale to millions of connections, and how callbacks evolved into futures, promises, and async/await — plus where coroutines fit and when async loses to threads.
9 steps·~14 min - Programmingadvanced
Semantic Analysis and Type Checking
The parser only checks syntax — it happily accepts `x = y + z` even if none of those names exist. Semantic analysis adds meaning: it builds symbol tables, resolves names, enforces scoping rules, and runs the type checker that catches the errors a grammar cannot. Learn what happens between the raw AST and the typed AST the IR generator gets.
9 steps·~14 min - Programmingadvanced
Parsing: Tokens to ASTs
The parser takes a flat token stream and recovers the hierarchical structure the programmer intended. Learn context-free grammars, recursive-descent parsing, operator precedence, the difference between a parse tree and an AST, and when LL versus LR parsers matter — including the classic dangling-else ambiguity.
9 steps·~14 min - Programmingadvanced
Lexical Analysis: Source to Tokens
Before a compiler can understand your code it has to chop it into meaningful pieces. Learn how scanners work, how regular expressions become finite automata, why maximal munch is the rule, and what a real token stream looks like — the foundation every later compiler phase depends on.
9 steps·~14 min - Programmingadvanced
IR, Optimization, and Code Generation
The typed AST is high-level — too high for a CPU. Learn why compilers lower to an intermediate representation first, what SSA form buys you, how classic optimizations (constant folding, dead-code elimination, CSE) transform IR, and how instruction selection and register allocation finally produce machine code.
9 steps·~14 min - Programmingintermediate
GitHub Copilot: Niche Power Features You Probably Aren't Using
You already let Copilot autocomplete your code. This lesson dives into the underused power features: chat participants, slash commands, Copilot Edits, agent mode, custom instructions, prompt files, the model picker, MCP servers, and Copilot Spaces.
12 steps·~18 min - Programmingintermediate
Claude Code: Niche Features You're Probably Not Using
A tour of the underused Claude Code power features beyond basic prompting: CLAUDE.md memory, plan mode, rewind, custom slash commands, subagents, hooks, MCP servers, statusline, and headless mode.
11 steps·~17 min - Programmingintermediate
Full-Stack Next.js with Prisma and Postgres
Ship a full-stack app on Next.js 15: Prisma schema, migrations vs db push, the hot-reload-safe client singleton, Server Components reading data, Server Actions mutating it, useOptimistic, Auth.js, and a Vercel + Neon deploy.
10 steps·~15 min - Programmingintermediate
Server vs Client Components in Next.js
The RSC mental model: server-by-default, the 'use client' boundary, what can cross it, Server Actions with 'use server', streaming with Suspense, and a Postgres-to-Client end-to-end example.
10 steps·~15 min - Programmingintermediate
Next.js App Router Fundamentals
Next.js 15 App Router: page/layout/loading/error files, nested layouts, dynamic and catch-all segments, route groups, parallel routes, and the Metadata API for SEO — with the file tree as a diagram.
10 steps·~15 min - Programmingintermediate
Data Fetching in React
From hand-rolled useEffect fetches to TanStack Query v5 and SWR: race conditions, caching, mutations, optimistic updates, error boundaries, and when to push fetching to the server.
10 steps·~15 min - Programmingintermediate
React Hooks: State and Effects
useState, useEffect, useReducer, and useContext in React 19: the rules, snapshot semantics, dependency arrays, when NOT to useEffect, and the dependency-array footgun that bites everyone.
10 steps·~15 min - Programmingintermediate
React Components and JSX
Master React 19's core primitive: function components, JSX, props, children, composition, conditional rendering, and stable keys — built around a small TODO list you can ship.
10 steps·~15 min - Programmingintermediate
Building REST APIs with Express
Build a small REST API on Node 22 with Express: routes, middleware, JSON body parsing, Zod input validation, status codes, and a clean async error pipeline you won't outgrow.
10 steps·~15 min - Programmingintermediate
Node.js Runtime Fundamentals
How Node 22 actually runs your code: V8, the libuv event loop and its phases, microtasks vs macrotasks, blocking pitfalls, and where worker threads, npm, pnpm, and bun fit in 2026.
10 steps·~15 min - Programmingintermediate
Profiling CUDA: Occupancy, Memory Coalescing, and Nsight
A working CUDA kernel is the start, not the finish. How to measure occupancy, spot uncoalesced loads and warp divergence, and read the three numbers in Nsight Compute that actually matter.
9 steps·~14 min - Programmingintermediate
Shared Memory Tiling for Matrix Multiplication
Why naive matmul on a GPU is bandwidth-starved, and how tiling with __shared__ memory reduces global memory traffic by a factor of the tile size. The classic optimisation, with the kernel that demonstrates it.
9 steps·~14 min - Programmingintermediate
Your First CUDA Kernel: Vector Addition End-to-End
The hello-world of CUDA, done properly. Allocate device memory, copy inputs, launch a kernel, copy results back, free, and check every return code. The full driver + kernel in one runnable file.
9 steps·~14 min - Programmingintermediate
CUDA Memory Hierarchy: Global, Shared, Constant, Local, Registers
The five memory spaces a CUDA kernel can see and why they have wildly different speeds. Global vs shared vs constant vs local vs registers, coalesced access, bank conflicts, and a cheat-sheet table you'll actually reference.
9 steps·~14 min - Programmingintermediate
CUDA Programming Model: Kernels, Threads, Blocks, and Grids
How CUDA carves a problem into a grid of blocks of threads. Host vs device code, the __global__ qualifier, the launch syntax, and how every thread figures out which slice of data it owns.
9 steps·~14 min - Programmingintermediate
Parallel Computing Fundamentals: CPUs, GPUs, Latency vs Throughput
Why GPUs eat CPUs for breakfast on some workloads and choke on others. Serial vs parallel execution, Amdahl's law, the latency-vs-throughput trade-off baked into silicon, and a rule of thumb for when to reach for a GPU.
9 steps·~14 min - Programmingbeginner
SQL JOINs: Combining Data from Multiple Tables
Learn how to combine data from different tables in a relational database using the four fundamental SQL JOIN types: INNER, LEFT, RIGHT, and FULL OUTER. We'll explore what each join does, when to use it, and how they differ, using clear examples and diagrams.
10 steps·~15 min - Programmingintermediate
PostgreSQL Indexes: Unlocking Query Performance with B-tree, Hash, GIN, and GiST
Dive deep into the world of PostgreSQL indexes. Understand the core mechanics of B-tree, Hash, GIN, and GiST indexes, their optimal use cases, and how to choose the right indexing strategy to dramatically accelerate your database queries.
9 steps·~14 min

