Lecture overview -- Keyboard shortcut: 'u'  Previous page: Literate Programming [Section] -- Keyboard shortcut: 'p'  Next page: An example of a literate program -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Page 11 : 40
Elucidative Programming
Literate Programming and the WEB System

Here we will briefly describe an important background and inspiration, namely Knuth's ideas of literate programming.

Knuth invented literate programming in order to explain and publish his programs in articles and books

  • Characteristics of literate programming:

    • Detachment of program explanation structure from program structure

    • The proximity between program fragments and their explanations

      • The pieces of program 'live in' the documentation

      • The opposite approach of conventional program commenting

Literate programming is typically supported by tools in the WEB-family