3 Oct Literate programming: Knuth is doing it wrong. Literate programming advocates this: Order your code for others to read, not for the compiler. The book Literate Programming, Donald E. Knuth is published by Center for the Study of Language and Information. Literate Programming (Lecture Notes) [Donald E. Knuth] on *FREE * shipping on qualifying offers. This anthology of essays from Donald Knuth, the.
|Published (Last):||16 November 2010|
|PDF File Size:||7.44 Mb|
|ePub File Size:||14.5 Mb|
|Price:||Free* [*Free Regsitration Required]|
Jul 09, Xavier Shay rated it liked it Shelves: I didn’t really take literate programming knuth away from the book though. This is illustrated by the following snippet of the wc literate program. Most of the errors in the literate programming knuth two printings were corrected in the third printing, but several minor errors have been found by sharp-eyed readers of the fourth printing or the fifth printing or the sixth printing KnuthLiterate Programming piterate.
I hope the version is otherwise error-free.
The main intention behind this approach was to treat program as a literature understandable to human beings.
By far and away in literate programming knuth most important literate programming knuth chapter to this day is the guest oyster column of Jon Louis Bentley’s brief Communications of the ACM column “Programming Pearls” wherein Don writes a “little” table building program in Pascal.
Such exposition of ideas creates the flow of thought that is like a literary work. From Wikipedia, the free encyclopedia.
Quotes from Literate Programming. This differs from traditional documentation, in which a programmer is presented with source code that follows a compiler-imposed order, and must decipher the thought process behind the program from the code and its associated comments. Phil Crosby rated it did not like it Mar 05, This volume is first literate programming knuth a series of Knuth’s collected works.
The retrospective is fascinating to get an idea of just how Knuth approaches software construction. However, because these tools do not implement the “web of abstract concepts” hiding behind the system of natural-language macros, or provide an ability to change the order of the source code from a machine-imposed sequence to one convenient to the human mind, they cannot properly be called literate programming tools in the sense intended by Knuth.
Zarthas rated it it was ok Aug 14, Aug 20, Josh Berry literate programming knuth it it was amazing. Frankly I did not find Knuth’s literate programs either fun to read, or more easily understood literate programming knuth well designed code with well chosen variable and function names would have been and far too many of Knuth’s variable names are obscure.
The present chunkwhich does the countingwas actually one of the simplest to write. I wish program reviews had become a regular feature. Literate programming knuth Programming in WEB”.
Literate Programming by Donald Ervin Knuth
Schulte, Eric January Sally rated it really liked it Jun 21, It consists of informal class discussions on programming style and examining literate programming knuth literate programs written by other students, written by a student, Paul Roberts. For example, suppose that you want to define something like Drawing and Literate Programming.
It would be a delight to see how he sketched the high level design of the system. Knuth also claims that literate programming provides a first-rate documentation system, which is not an add-on, but is grown naturally in the process of exposition of literate programming knuth thoughts during a program’s creation.
This book received the Productivity Award from Computer Language magazine,awarded to products that significantly increase programmer productivity. This misconception has led to claims that comment-extraction tools, such as the Perl Plain Old Documentation or Java Javadoc systems, are “literate programming tools”. In literate programming knuth this book is a good read to see how one smart guy a while ago in computer literate programming knuth tried to improve his code writing ability.
Literate Programming, Knuth
Literate programming is writing out the program logic in a human language with included separated litterate a primitive markup code snippets and macros. This is not true; literate programming knuth is useful in certain instances when applications are small and are very algorithmically intensive. But after gaining experience with WEB, I have come to realize that there is no need to choose once and for all between top-down and literate programming knuth, because a program is best thought of literate programming knuth a web instead of a tree.
The reordering of code didn’t really do anything for me, nor did I find the use of special symbols to enhance a program’s readability. These were all written before the idea of “literate programming” had been conceived, but they give insights into Knuth’s philosophy of programming.
It is only literate programming knuth literate programming system that really takes the idea seriously and to its logical conclusion, by 1 freeing the programmer to write code in whatever order is appropriate for exposition, not the order that the compiler wants, and, more generally, 2 being a system for writing a document that contains the program, not for documenting a program after it has been written.
The unraveling of the chunks can be done in any place in the literate program text literate programming knuth, not necessarily in the order they are sequenced in the enclosing chunk, but as is demanded by the logic reflected in the programmijg text that knutb the whole program.
Ryan rated it really liked it Jul 01, Jan 15, Eugene Miya rated it really liked it.