Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Refactoring – simple word which all of you already heard about it - Do Minh Tuan

Have you ever think about What exactly Refactoring doing? Why you have to do that? and How to do it in the right way?
In my topic, you may find out the answers for those questions. Then, you have my word “Refactoring”!

  • Login to see the comments

  • Be the first to like this

Refactoring – simple word which all of you already heard about it - Do Minh Tuan

  1. 1. Refactoring A simple word which all of you already heard about –Do Minh Tuan
  2. 2. I’m Tuan • Live in Da Nang. • Working in Axon Active Vietnam. • Scrum Master, Team Leader, Software Engineer. • Java, Javascript, Code Generator.
  3. 3. Story
  4. 4. –Martin Fowler “a change made to the internal structure of software to make it easier to understand and cheaper to modify without changing its observable behavior.” What is Refactoring ?
  5. 5. ADDING FUNCTION REFACTORING you can only wear one hat at a time
  6. 6. Why should you refactor ?
  7. 7. Improve your software design
  8. 8. Easier to understand
  9. 9. Future Developer
  10. 10. Save your energy
  11. 11. Finding bugs
  12. 12. Programming faster
  13. 13. Video
  14. 14. When do you refactor ?
  15. 15. –Don Roberts “The first time you do something, you just do it. The second time you do something similar, you wince at the duplication, but you do the duplicate thing anyway. The third time you do something similar, you refactor”
  16. 16. Adding function
  17. 17. Fixing bugs
  18. 18. Coding review
  19. 19. “If it stinks, change it”
  20. 20. Long Method Large Class Long Parameter List Divergent Change Shotgun Surgery Data Clumps Feature Envy Primitive Obsession Switch Statements Parallel Inheritance HierarchiesSpeculative Generality Temporary Field Message Chains Middle manInappropriate IntimacyIncomplete Library Class Data ClassRefuse Bequest Comment Duplicated Code
  21. 21. Demo
  22. 22. –Kent Beck “I’m not a great programmer, I’m just a good programmer with great habits.”
  23. 23. Thank you !