refactoring – simple word which all of you already heard about it - do minh tuan
TRANSCRIPT
![Page 1: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/1.jpg)
RefactoringA simple word which all of you already heard about
–Do Minh Tuan
![Page 2: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/2.jpg)
I’m Tuan• Live in Da Nang.
• Working in Axon Active Vietnam.
• Scrum Master, Team Leader, Software Engineer.
• Java, Javascript, Code Generator.
![Page 3: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/3.jpg)
Story
![Page 4: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/4.jpg)
![Page 5: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/5.jpg)
![Page 6: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/6.jpg)
–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 ?
![Page 7: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/7.jpg)
ADDING FUNCTION REFACTORING
you can only wear one hat at a time
![Page 8: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/8.jpg)
Why should you refactor ?
![Page 9: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/9.jpg)
![Page 10: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/10.jpg)
Improve your software design
![Page 11: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/11.jpg)
Easier to understand
![Page 12: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/12.jpg)
Future Developer
![Page 13: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/13.jpg)
Save your energy
![Page 14: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/14.jpg)
Finding bugs
![Page 15: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/15.jpg)
Programming faster
![Page 16: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/16.jpg)
Video
![Page 17: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/17.jpg)
![Page 18: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/18.jpg)
When do you refactor ?
![Page 19: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/19.jpg)
–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”
![Page 20: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/20.jpg)
Adding function
![Page 21: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/21.jpg)
Fixing bugs
![Page 22: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/22.jpg)
Coding review
![Page 23: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/23.jpg)
“If it stinks, change it”
![Page 24: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/24.jpg)
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
![Page 25: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/25.jpg)
Demo
![Page 26: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/26.jpg)
–Kent Beck
“I’m not a great programmer, I’m just a good programmer with great habits.”
![Page 27: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/27.jpg)
![Page 28: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/28.jpg)
![Page 29: Refactoring – simple word which all of you already heard about it - Do Minh Tuan](https://reader030.vdocuments.mx/reader030/viewer/2022032620/55cad9ebbb61eb4f2b8b45f6/html5/thumbnails/29.jpg)