Tuesday, February 17, 2009

Hierarchy of code reuse

Hierarchy of code reuse by flexibility:

  • Code generation and cut and paste: unconstrained modifications
  • Inheritance and passing callbacks: modifications only at the method granularity
  • Normal libraries: no modification of existing algorithms - only composing them into larger constructions