Refactoring Legacy Code

3,437 views

Published on

GUJavaSC - My Refactoring Legacy Code session on 2013-06-18.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,437
On SlideShare
0
From Embeds
0
Number of Embeds
2,562
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Refactoring Legacy Code

  1. 1. Globalcode – Open4educationRefactoring Legacy CodeFINDING THE BALANCE BETWEENQUALITY AND RISK
  2. 2. Globalcode – Open4educationREFACTORING LEGACY CODE@mmalxhttp://br.linkedin.com/in/mmirandaalexhttp://alexmiranda.nethttp://github.com/alexmirandaFINDING THE BALANCE BETWEEN QUALITY AND RISK
  3. 3. Globalcode – Open4educationThanks toSandro MancusoSoftware Craftsmanco-founder of the LondonSoftware CraftsmanshipCommunity (LSCC)Working Effectively withLegacy CodeMichael FeathersRefactoring: Improving theDesign of Existing CodeMartin Fowler
  4. 4. Globalcode – Open4educationLegacy Code: What is it?Code not covered by testsCode smellsBad DesignHard maintenanceIllegible codeHigh learning curveMethods of changing codeChange and prayCover and refactor
  5. 5. Globalcode – Open4educationCode Refactoring #failhttp://thecodinglove.com/post/51001512539/code-refactoring
  6. 6. Globalcode – Open4educationWhen refactoring working codehttp://thecodinglove.com/post/51736558987/when-refactoring-working-code
  7. 7. Globalcode – Open4educationWhen refactoring a 5-year old projecthttp://thecodinglove.com/post/53182348711/when-refactoring-a-5-year-old-project
  8. 8. Globalcode – Open4educationUnit Tests and TDD + RefactoringImprove code qualityImprove maintainabilityImprove code readabilityYou’re not being agile, if you’re not considering thisSide-effects of bad tests
  9. 9. Globalcode – Open4educationDesign Stamina HypothesisIs it worth the effort to design software well?“We really need to move fast to make our targetnext year so we are reducing <some designactivity>”http://martinfowler.com/bliki/DesignStaminaHypothesis.html
  10. 10. Globalcode – Open4educationTechnical Debthttp://martinfowler.com/bliki/DesignStaminaHypothesis.html
  11. 11. { "LETS CODE" }
  12. 12. Globalcode – Open4educationReviewhttp://www.slideshare.net/sandromancuso/legacy-code-handson-session
  13. 13. Questions?
  14. 14. Globalcode – Open4educationThank you@mmalxhttp://br.linkedin.com/in/mmirandaalexhttp://alexmiranda.nethttp://github.com/alexmiranda

×