Software Design by Example (Python)
Builds tools (a build system, a parser, a debugger…) from scratch in Python to teach how the tools you use every day actually work.
Open-access at https://third-bit.com/sdxpy/. Each chapter is a tiny implementation of a tool I’ve used for years without thinking about — a forcing function for getting a real intuition for the design choices behind them.