It is not supposed to be good code. It is not targeted to all the world
That's kind of like saying: "The Feces Cookbook" is a fine piece of writing because it's not targeted to all the world.
We generally only tolerate this low quality of writing in journalism. Technical books of any sort are, and should be, held to a higher standard.