Refactoring Code Professor Larry Heimann Information Systems - - PowerPoint PPT Presentation

refactoring code
SMART_READER_LITE
LIVE PREVIEW

Refactoring Code Professor Larry Heimann Information Systems - - PowerPoint PPT Presentation

Refactoring Code Professor Larry Heimann Information Systems Carnegie Mellon University Why refactor code that works? There are better ways to do it Repetition is dangerous Maintaining spaghetti code is hard Dont want someone


slide-1
SLIDE 1

Refactoring Code

Professor Larry Heimann Information Systems Carnegie Mellon University

slide-2
SLIDE 2
slide-3
SLIDE 3

Why refactor code that works?

  • There are better ways to do it
  • Repetition is dangerous
  • Maintaining spaghetti code is hard
  • Don’t want someone else to clean up your messes
  • Technical debt has to be paid off at some point
slide-4
SLIDE 4

Technical debt

Go into debt to get immediate gains that will have to be repaid later with interest In software development we take shortcuts or use hackish solutions to get over pressing hurdles The longer those shortcuts go unaddressed, the more expensive it will be later to fix (or even maintain)

slide-5
SLIDE 5

Technical debt

Source: Martin Fowler, “TechnicalDebtQuadrant”, http://martinfowler.com/bliki/TechnicalDebtQuadrant.html

slide-6
SLIDE 6