Re: [math-fun] Passing thought for a textbook
From: Steve Witham <sw@tiac.net>
_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,
_Software Tools_ is actually also by Kernighan and Plauger. From the first paragraph of the Preface: "These programs are complete, not just algorithms or outlines, and they work: all have been tested directly from the text, which is in machine-readable form." The previous page says that the book was typeset by the authors on a PDP 11/45 running Unix. I found all this very bracing in 1976. From: Gareth McCaughan <gareth.mccaughan@pobox.com>
"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.
Btw my point isn't that testing a program is the same as checking a proof, but that K&P's was a way to convey a similar attitude in a book. --Steve
Isn't Kernighan one of the designers of C? Or am I thinking of Unix? If it's C, that name probably came from the mark they got for it in compiler class. I hated programming in it, especially after using a greatly superior language back in the 1970's. Steve Gray -----Original Message----- From: math-fun-bounces@mailman.xmission.com [mailto:math-fun-bounces@mailman.xmission.com] On Behalf Of Steve Witham Sent: Wednesday, January 14, 2009 2:12 PM To: math-fun@mailman.xmission.com Subject: Re: [math-fun] Passing thought for a textbook
From: Steve Witham <sw@tiac.net>
_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,
_Software Tools_ is actually also by Kernighan and Plauger. From the first paragraph of the Preface: "These programs are complete, not just algorithms or outlines, and they work: all have been tested directly from the text, which is in machine-readable form." The previous page says that the book was typeset by the authors on a PDP 11/45 running Unix. I found all this very bracing in 1976. From: Gareth McCaughan <gareth.mccaughan@pobox.com>
"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.
Btw my point isn't that testing a program is the same as checking a proof, but that K&P's was a way to convey a similar attitude in a book. --Steve _______________________________________________ math-fun mailing list math-fun@mailman.xmission.com http://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun
Quoting Stephen Gray <stevebg@roadrunner.com>:
Isn't Kernighan one of the designers of C? Or am I thinking of Unix? If it's C, that name probably came from the mark they got for it in compiler class. I hated programming in it, especially after using a greatly superior language back in the 1970's.
Out of curiosity, what was the name of this superior language? I hope it wasn't FORTRAN! - hvm ------------------------------------------------- www.correo.unam.mx UNAMonos Comunicándonos
participants (3)
-
mcintosh@servidor.unam.mx -
Stephen Gray -
Steve Witham