Worst of
       The

   Legacy Code :
Forensic Development


By Jason Kerney & Llewellyn Falco
Bug #54

If a home , auto and personal loan are
taken out by tom, 3 versions of tom
appear in the database.
Fixing Legacy Code
Fixing Legacy Code
The Peel
The Peel
5
5
5
5
5
5
5
6
6
6
6
The Slice
The Slice


            return sample
8
8
8
8
8
8
8
return sample




return sample
return sample




return sample
Pop Quiz: Question 2
Pop Quiz: Question 2
 To get this code to run, does the
   follow Code do when called with
   “ntsc” as the TvType?

 A) C...
Pop Quiz: Question 2
Pop Quiz: Question 2
 To get this code to run, how should
   you handle
   web.Headers["TvFormat"]

 A) Peel
 B) Slice
Pop Quiz: Question 3
Pop Quiz: Question 3
To get this code to run, how should
  you handle
  maker.CreateFrame("" + i);

A) Peel
B) Slice
Resources
Resources
VS 2010 / MsTest / Code Coverage

Mock Utility : RhinoMock
http://www.ayende.com/projects/rhino-mocks.aspx



Ho...
What we offer
• Day Classes on site
   •Single day class to educate & train
   employees on a single aspect of agile

• On...
Contact
    Jason Kerney
    jason.kerney@gmail.com




    Llewellyn Falco
    info@spunlabs.com
The Worst of Legacy Code - Forensic Development
The Worst of Legacy Code - Forensic Development
The Worst of Legacy Code - Forensic Development
The Worst of Legacy Code - Forensic Development
The Worst of Legacy Code - Forensic Development
The Worst of Legacy Code - Forensic Development
The Worst of Legacy Code - Forensic Development
The Worst of Legacy Code - Forensic Development
The Worst of Legacy Code - Forensic Development
The Worst of Legacy Code - Forensic Development
The Worst of Legacy Code - Forensic Development
The Worst of Legacy Code - Forensic Development
Upcoming SlideShare
Loading in …5
×

The Worst of Legacy Code - Forensic Development

1,297 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,297
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
19
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

























































































  • The Worst of Legacy Code - Forensic Development

    1. 1. Worst of The Legacy Code : Forensic Development By Jason Kerney & Llewellyn Falco
    2. 2. Bug #54 If a home , auto and personal loan are taken out by tom, 3 versions of tom appear in the database.
    3. 3. Fixing Legacy Code
    4. 4. Fixing Legacy Code
    5. 5. The Peel
    6. 6. The Peel
    7. 7. 5
    8. 8. 5
    9. 9. 5
    10. 10. 5
    11. 11. 5
    12. 12. 5
    13. 13. 5
    14. 14. 6
    15. 15. 6
    16. 16. 6
    17. 17. 6
    18. 18. The Slice
    19. 19. The Slice return sample
    20. 20. 8
    21. 21. 8
    22. 22. 8
    23. 23. 8
    24. 24. 8
    25. 25. 8
    26. 26. 8
    27. 27. return sample return sample
    28. 28. return sample return sample
    29. 29. Pop Quiz: Question 2
    30. 30. Pop Quiz: Question 2 To get this code to run, does the follow Code do when called with “ntsc” as the TvType? A) Creates 30 Frames #30 - 0 B) Throws an Exception C) Other D) Run it to find out
    31. 31. Pop Quiz: Question 2
    32. 32. Pop Quiz: Question 2 To get this code to run, how should you handle web.Headers["TvFormat"] A) Peel B) Slice
    33. 33. Pop Quiz: Question 3
    34. 34. Pop Quiz: Question 3 To get this code to run, how should you handle maker.CreateFrame("" + i); A) Peel B) Slice
    35. 35. Resources
    36. 36. Resources VS 2010 / MsTest / Code Coverage Mock Utility : RhinoMock http://www.ayende.com/projects/rhino-mocks.aspx Honorable Mention: TypeMock http://www.typemock.com/ ( good but expensive $$$ )
    37. 37. What we offer • Day Classes on site •Single day class to educate & train employees on a single aspect of agile • On site coaching •Minimum 2 weeks working on site with employees on their stuff. •Training/Mentoring •Setup of framework •Source Control •Automated Builds •Continuous integration •Work environment
    38. 38. Contact Jason Kerney jason.kerney@gmail.com Llewellyn Falco info@spunlabs.com

    ×