Transformation Priority Premise

"The Transformation Priority Premise (TPP) is a programming approach developed by RobertCecilMartin (UncleBob) as a refinement to make the process of test-driven development (TDD) easier and more effective for a computer programmer." -- http://en.wikipedia.org/wiki/Transformation_Priority_Premise

Blog: http://blog.8thlight.com/uncle-bob/2013/05/27/TheTransformationPriorityPremise.html


The Transformations:

  1. ({}–>nil) no code at all->code that employs nil
  2. (nil->constant)
  3. (constant->constant+) a simple constant to a more complex constant
  4. (constant->scalar) replacing a constant with a variable or an argument
  5. (statement->statements) adding more unconditional statements.
  6. (unconditional->if) splitting the execution path
  7. (scalar->array)
  8. (array->container)
  9. (statement->recursion)
  10. (if->while)
  11. (expression->function) replacing an expression with a function or algorithm
  12. (variable->assignment) replacing the value of a variable.
Uncle Bob also explicitly stated: "There are likely others".


EditText of this page (last edited January 10, 2014) or FindPage with title or text search