technical debt
play

Technical Debt Elizabeth Naramore Dutch PHP Conference June 11, - PowerPoint PPT Presentation

Technical Debt Elizabeth Naramore Dutch PHP Conference June 11, 2010 1 Technical Debt: What is it? 2 Technical Debt: Why should we care? 3 "Shipping first time code is like going into debt. A little debt speeds development so long


  1. Technical Debt Elizabeth Naramore Dutch PHP Conference June 11, 2010 1

  2. Technical Debt: What is it? 2

  3. Technical Debt: Why should we care? 3

  4. "Shipping first time code is like going into debt. A little debt speeds development so long as it is paid back promptly with a rewrite... The danger occurs when the debt is not repaid. Every minute spent on non-quite- right code counts as interest on that debt. --Ward Cunningham, 1992 4

  5. "I think that there were plenty of cases where people would rush software out the door and learn things but never put that learning back into the program, and that by analogy, was borrowing money thinking that you never had to pay it back.... eventually all your income goes to interest and your purchasing power goes to zero." 5

  6. What is technical debt? Code or practices that will hinder your progress in the future. 6

  7. Why should we care? Too much technical debt can cripple your team or organization. 7

  8. You have technical debt if you have: lack of documentation untested code suppressed errors unshared knowledge between teams or people confusing code, inconsistencies, "workarounds" local changes you've not committed 8

  9. Or, if you have: code that doesn't follow coding standards non-existent or improperly used version control unstable deployment process duplicate code blocks individual code ownership 3 r d party software that needs updated or patched 9

  10. Guess what? 10

  11. We all have it. 11

  12. Don't panic. 12

  13. Some technical debt is ok. 13

  14. It might make sense if: It lets you hit a deadline It lets you test an experimental feature The code is rarely touched You are coding based on reasonable expectations It allows you to extend startup money Your code is at the end of the life-cycle 14

  15. This is also known as prudent technical debt. 15

  16. So when is technical debt not ok? All the other times. 16

  17. This is also known as reckless technical debt. 17

  18. Sometimes we know we are taking shortcuts, but we do it anyway. 18

  19. This is also known as deliberate technical debt. 19

  20. Sometimes we don't know any better, or the debt is not our fault. 20

  21. This debt could come from: inexperienced team members changing project requirements post-release retrospectives security patches or updates from 3 r d parties 21

  22. This is also known as inadvertent technical debt. 22

  23. 4 ways to classify technical debt: Prudent vs. Reckless Deliberate vs. Inadvertent 23

  24. Martin Fowler's Quadrant 24

  25. By minimizing deliberate debt, you make it easier to handle inadvertent debt. 25

  26. So now that we know what it is, what do we do with it? 26

  27. We tackle our debt with D.E.B.T. (see what I did there?) 27

  28. Discover Estimate Break Down Task & Track 28

  29. Discover Where is our technical debt? Ask the developers on your team Use the checklist mentioned earlier Use software like PHPUnderControl or Sonar 29

  30. Estimate The Sonar Formula Debt(in man days)= cost_to_fix_duplications + cost_to_fix_violations + cost_to_comment_public_API + cost_to_fix_uncovered_complexity + cost_to_bring_complexity_below_threshold + cost_to_cut_cycles_at_package_level 30

  31. Estimate The Sonar Formula 31

  32. Estimate But how much is it costing us? The Simple-ish Formula Amount of the “loan” = cost to fix “Interest Rate” = Adverse impact on development 32

  33. Estimate Quantifying is hard. OK to use other techniques. 33

  34. Estimate Use estimation technique that works for you Get input and buy-in from the team 34

  35. Break Down What do we do with it? Every task breaks down into 2 categories: 1. Debts where we continue paying interest 2. Debts where we pay the principal 35

  36. Task and Track How can we make it visible? Add it to bug tracker, task board, etc. 36

  37. Paying it Off Focus on higher interest rate items first. 37

  38. Paying it Off Dedicate time for technical debt reduction. ● Use time right after a release ● Tech debt iteration ● Time each day for tech debt ● Refactor as you go ● Use off-season time 38

  39. Paying it Off Keep track of your progress. 39

  40. Preventing Technical Debt ● Break past habits ● Group consensus & commitment ● Teach your “children” well ● Never file for bankruptcy ● Live within your means ● Anticipate your needs 40

  41. Make sure to see: PHP UnderControl: http://phpundercontrol.org Sonar: http://www.sonarsource.com/ (plus tech debt plugin) 41

  42. Want to contact me? http://naramore.net/blog @ElizabethN elizabeth@naramore.net Freenode IRC: ElizabethN THANKS! Image used with permission from Martin Fowler 42

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend