As a set of articles joined in a collection, like I'm doing. Writing down a list of everything you want to cover and then slogging through it, when you're bored.
Discussion
This seems like the best way to write a technical book, because you can replace the individual articles, when they become obsolete.
More like a website, than a book, but could be "printed" as an ePub or a PDF.