Presentation is loading. Please wait.

Presentation is loading. Please wait.

Refactoring Towards Sanity Robert Reppel ( Sample code is at )http://robertblogs.wordpress.com/

Similar presentations


Presentation on theme: "Refactoring Towards Sanity Robert Reppel ( Sample code is at )http://robertblogs.wordpress.com/"— Presentation transcript:

1 Refactoring Towards Sanity Robert Reppel ( Sample code is at http://robertblogs.wordpress.com/ )http://robertblogs.wordpress.com/

2 Why Refactor? To get better at fixing bugs To be able to add new features faster. (Arguably) there is no other reason …. ( Sample code is at http://robertblogs.wordpress.com/ )http://robertblogs.wordpress.com/

3 What to Refactor The minimum we can get away with. The maximum we can sell to The Man. (???) “The Big Re-Write” is: – Frustrating (for the business) – Not always better than the original (???)

4 What We’ll Do Sprout Wrap Refactor “When you need to add a new feature to a system and it can be formulated completely as new code, write it in a new method …. At least write tests for the new code … ” -- Michael Feathers … and writing tests, of course …

5 Real – World Sprout: Real Estate Conveyancing Letters for lawyers, etc. need to contain standard phrases for deposit trust amounts, etc. Different provinces, different conveyancing methods, different requirements. Letters as Crystal Reports fed by Stored Procedures. (… which contain the business rules …  )

6 Sources / Reading “Refactoring To Patterns” – Joshua Kerievsky “Working Effectively With Legacy Code” – Michael Feathers @robertreppel robertblogs.wordpress.com


Download ppt "Refactoring Towards Sanity Robert Reppel ( Sample code is at )http://robertblogs.wordpress.com/"

Similar presentations


Ads by Google