Reflections on Writing a Book — by Patrick Dubroy, the author of "WebAssembly from the Ground Up". It closely matches my experience of writing "Debugging TypeScript Applications"
When I compared this to previous writing experiences — my master’s thesis and a handful of academic papers — I realized how much value there is in having a fixed structure. Academic papers have a template and a page limit, along with many conventions that reviewers and readers expect. Within those boundaries, there’s a bit flexibility, but the overall structure is pretty fixed.