All of the interesting technological, artistic or just plain fun subjects I'd investigate if I had an infinite number of lifetimes. In other words, a dumping ground...

Tuesday, 29 April 2008

Literate Programming

http://www.literateprogramming.com/

Donald Knuth. "Literate Programming (1984)" in Literate Programming. CSLI, 1992, pg. 99.

I believe that the time is ripe for significantly better documentation of programs, and that we can best achieve this by considering programs to be works of literature. Hence, my title: "Literate Programming."

Let us change our traditional attitude to the construction of programs: Instead of imagining that our main task is to instruct a computer what to do, let us concentrate rather on explaining to human beings what we want a computer to do.

The practitioner of literate programming can be regarded as an essayist, whose main concern is with exposition and excellence of style. Such an author, with thesaurus in hand, chooses the names of variables carefully and explains what each variable means. He or she strives for a program that is comprehensible because its concepts have been introduced in an order that is best for human understanding, using a mixture of formal and informal methods that reinforce each other.


http://www-cs-faculty.stanford.edu/~knuth/cweb.html
http://www.amazon.com/Literate-Programming-Center-Language-Information/dp/0937073806/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1208825413&sr=1-1
http://www.google.com.au/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fwww.codesourcery.com%2Fvsiplplusplus&ei=b50WSJ6iDJqYoQSplaiQAg&usg=AFQjCNHTSRxmKfTemxCOKWoXHC1M4vwq6Q&sig2=OQj0AIdV1HXYTYD9nkRl1A

No comments:

tim's shared items

Add to Google Reader or Homepage