Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Confident refactors

Confident refactors

Mehdi Lahmam B.

June 19, 2017
Tweet

More Decks by Mehdi Lahmam B.

Other Decks in Technology

Transcript

  1. Refactor - verb To change the design of code without

    changing its observable behavior.
  2. Refactor - verb To change in advance of a new

    feature or bug fix, making the job easier.
  3. Business priority Cost / risks New features Bug fixes Testing

    Refactoring no selling needed easy to sell can often sell very hard to sell
  4. What techniques we have? PDD - Pray Driven Development Fowler’s

    refactoring book Characterization testing A/B testing, experiments
  5. Refactors as surgeries Requires careful planning Follow a clear process

    Multiple observations Flexible tools Things can get bloody
  6. 1. Plan 2. Cut 3. Record 4. Validate 5. Refactor

    6. Verify 7. Compare 8. Fallback 9. Delete Clear process
  7. Cut