Speaker: Gordon Guo, ThoughtWorks
We will do some legacy code refactoring kata: https://github.com/jbrains/trivia
Agenda:
- Introduction on characterization test (golden master test)
- Walk through the codes to identify some code smell
- Some demo on refactoring (I will use the Javascript codebases as many attendees from previous sessions code in Javascript)
- Pair up with someone and do hands-on exercise on refactoring
Sample Codes:
Golden Master in JavaScript:
https://github.com/songguoqiang/trivia_refactoring_kata
Golden Master in Java:
http://blog.thecodewhisperer.com/permalink/surviving-legacy-code-with-golden-master-and-sampling
Golden Master in C#:
http://codecleane.rs/2016/09/30/refactoring-legacy-code-in-practice-iteration-2-building-a-golden-master/
Event Page: https://www.meetup.com/Junior-Developers-Singapore/events/253702426/
Produced by Engineers.SG
Recorded by:
Help us caption & translate this video!