refactoring dojo @agileworks bucharest 21 may 2014
TRANSCRIPT
RefactoringDojo
www.mozaicworks.com
Me
Adi Bolboaca: Programmer, Trainer, Coach
www.mozaicworks.com
Today
Take a code base with full test coverageWatch me refactor for a whileStart refactoring the code baseUse pair-programmingDiscuss the refactoringCommit often
www.mozaicworks.com
Coding Dojo
Work on a problemFixed period of timePurpose: improve your skills by practiceJoin a learning environment
More: http://codingdojo.org
www.mozaicworks.com
Code smell
A code smell is a hint that shows you might have a problem in your system. '
www.mozaicworks.com
Code smell
SniffableEasy to spotDoes not always indicate a problem
www.mozaicworks.com
Refactoring
Changing a software system without changing the behavior of the code and improving its internal structure
www.mozaicworks.com
Refactoring
Is NOT:
Re-engineeringRe-designRe-writing
www.mozaicworks.com
Code base
www.mozaicworks.com
https://github.com/adi-bolb/Refactoring-Katas/tree/master/Tennis
Let's have fun
www.mozaicworks.com
Refactoring time!
How was it?
www.mozaicworks.com
Did I do anything unusual?Did I do anything strange?Do you have any questions?
You have fun now
www.mozaicworks.com
Find a pair
Choose a language: C++, C#, Java, Objective-C, Python, Ruby
Start refactoring
Code base
www.mozaicworks.com
https://github.com/adi-bolb/Refactoring-Katas/tree/master/Tennis
You have fun now
www.mozaicworks.com
Talk about a refactoring purposeCommit oftenTalk with your pair
Debriefing time
www.mozaicworks.com
How are you?
What did you do?
You have fun now
www.mozaicworks.com
Talk about a refactoring purposeCommit oftenTalk with your pair
Conclusion
www.mozaicworks.com
How did you feel?What did you learn?Would you apply this tomorrow?
Contact me
Unit testing workshopRemote pair-programmingTDD workshopRefactoring workshopWorking FAST and Safe with existing codeLegacy code retreatCode retreat
@adibolb
www.mozaicworks.com
Refactoring Dojo
http://www.mozaicworks.com [email protected]@adibolb
Extend your mentoring & training capacityAccelerate learning through communities of practiceGrow your functional leaders and top talents
www.mozaicworks.com
Read more
http://blog.adrianbolboaca.ro/2013/04/the-history-of-brutal-refactoring-game
www.mozaicworks.com
Refactoring Dojo
Q&A,Beer & More...
www.mozaicworks.com