Wednesday, June 22, 2011

The Transformation Priority Premise

  • ({}–>nil) no code at all->code that employs nil
  • (nil->constant)
  • (constant->constant+) a simple constant to a more complex constant
  • (constant->scalar) replacing a constant with a variable or an argument
  • (statement->statements) adding more unconditional statements.
  • (unconditional->if) splitting the execution path
  • (scalar->array)
  • (array->container)
  • (statement->tail-recursion)
  • (if->while)
  • (statement->recursion)
  • (expression->function) replacing an expression with a function or algorithm
  • (variable->assignment) replacing the value of a variable.
  • (case) adding a case (or else) to an existing switch or if

ShowMyCodeDecompiler

Online decompiler for SWF, Java, .Net: http://www.showmycode.com/

Flash Cards: T-P Premise

TPP Movie from NDC 2011: http://ndc2011.macsimum.no/mp4/Day1%20Wednesday/Track5%201740-1840.mp4

http://cleancoder.posterous.com/the-transformation-priority-premise

http://madcoderspeak.blogspot.com/2011/02/flash-cards-kata-and-transformation.html

http://cleancoder.posterous.com/flash-tpp