( --> )

Incremental Programming

Definition

Incremental programming is a programming methodology
wherein one develops a program by writing a sequence
of programs with the following properties.

Example

Suppose you are asked to determine the difference between
the extreme values of a triple of integers.

  1. Write a program to read three integers and write
    them out.
  2. Same as 1, but also determine and print the
    largest of the three.
  3. Same as 2, but also determine and print the
    smallest of the three.
  4. Same as 3, but also determine and print the
    difference between the largest and the smallest.
  5. Same as 4, but kill all output statements other
    than the final one.