On Monday 12 January 2009, Steve Witham wrote:
_The Elements of Programming Style_, by Kernighan and Plauger, famously headed its sections with examples of bad style taken from other textbooks.
I'm not sure whether it was that book, or maybe one of these: _Software Tools_ by Kernighan, _Structure and Interpretation of Computer Programs_, by Ableson, Sussman and Sussman or ?
...which boasted that every code example was automatically tested by a script that extracted it from the source text as sent to the typesetting software.
"The practice of programming", by Kernighan and Pike, makes more or less that claim, but doesn't make a big fuss about it. I think I've seen it in at least one other book, but that may be memory error. -- g