Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
The Transformation 
Priority Premise 
Fernando Di Bartolo 
Ágiles 2014, Medellín, Colombia 
@fdibartolo
disclaimer
failing test 
make it pass 
refactor 
TDD cycle
22 
4 Rules of TDD 
1 
3 
√ 
√ As the tests get more specific 
√ 
the code gets more generic
word wrap kata 
https://github.com/fdibartolo/agiles_2014 
ref: http://codingdojo.org/cgi-bin/index.pl?KataWordWrap
! 
{} nil no code at all to code that employs nil 
nil constant 
constant constant+ a simple constant to a more complex co...
! 
{} nil no code at all to code that employs nil 
nil constant 
constant constant+ a simple constant to a more complex co...
! 
{} nil no code at all to code that employs nil 
nil constant 
constant constant+ a simple constant to a more complex co...
! 
{} nil no code at all to code that employs nil 
nil constant 
constant constant+ a simple constant to a more complex co...
! 
{} nil no code at all to code that employs nil 
nil constant 
constant constant+ a simple constant to a more complex co...
variable assignment replacing the value of a variable 
unconditional if splitting the execution path
impasses
Thanks! 
fernando.di.bartolo 
@fdibartolo
Upcoming SlideShare
Loading in …5
×

Agiles 2014 - The Transformation Priority Premise

939 views

Published on

These are the slides of my presentation at Agiles 2014.
Link to the talk: http://agiles2014.sched.org/event/75e37d1ff07889d60d102b1386e0358d#.VElttb5gvww

Published in: Software
  • Be the first to comment

  • Be the first to like this

Agiles 2014 - The Transformation Priority Premise

  1. 1. The Transformation Priority Premise Fernando Di Bartolo Ágiles 2014, Medellín, Colombia @fdibartolo
  2. 2. disclaimer
  3. 3. failing test make it pass refactor TDD cycle
  4. 4. 22 4 Rules of TDD 1 3 √ √ As the tests get more specific √ the code gets more generic
  5. 5. word wrap kata https://github.com/fdibartolo/agiles_2014 ref: http://codingdojo.org/cgi-bin/index.pl?KataWordWrap
  6. 6. ! {} nil no code at all to 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 recursion if while expression function replacing an expression with a function or algorithm variable assignment replacing the value of a variable There are likely others http://blog.8thlight.com/uncle-bob/2013/05/27/TheTransformationPriorityPremise.html
  7. 7. ! {} nil no code at all to 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 recursion if while expression function replacing an expression with a function or algorithm variable assignment replacing the value of a variable There are likely others http://blog.8thlight.com/uncle-bob/2013/05/27/TheTransformationPriorityPremise.html
  8. 8. ! {} nil no code at all to 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 recursion if while expression function replacing an expression with a function or algorithm variable assignment replacing the value of a variable There are likely others http://blog.8thlight.com/uncle-bob/2013/05/27/TheTransformationPriorityPremise.html
  9. 9. ! {} nil no code at all to 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 recursion if while expression function replacing an expression with a function or algorithm variable assignment replacing the value of a variable There are likely others http://blog.8thlight.com/uncle-bob/2013/05/27/TheTransformationPriorityPremise.html
  10. 10. ! {} nil no code at all to 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 recursion if while expression function replacing an expression with a function or algorithm variable assignment replacing the value of a variable There are likely others http://blog.8thlight.com/uncle-bob/2013/05/27/TheTransformationPriorityPremise.html
  11. 11. variable assignment replacing the value of a variable unconditional if splitting the execution path
  12. 12. impasses
  13. 13. Thanks! fernando.di.bartolo @fdibartolo

×