Learn code smells, IDE refactoring moves, and fall in love with continuously improving code quality.
After this workshop you will be able to:
What to expect: The workshop mixes refactoring exercises with debates on design topics, attitude, ethics, teamwork, and more, in a very entertaining style, spiced with analogies and real-life stories. During the last half we will refactor some larger samples, ideally anonymized from the audience’ production code. To get a sample, check out my session at Devoxx.be: https://youtu.be/wY_CUkU1zfw
Agenda
Follow-up Refactoring Exercises (optional, after the workshop):
– Yatzy (practice FP): https://github.com/emilybache/Yatzy-Refactoring-Kata
– Gilded Rose (practice OOP): https://github.com/emilybache/GildedRose-Refactoring-Kata
– Supermarket (practice modeling): https://github.com/victorrentea/kata-supermarket-java
This training is for you if:
Prep work (mandatory):
– a snippet/a class of ≤ 100-300 lines from your project.
– The ideal sample exhibits some typical issues in your project’s codebase, perhaps debated at code reviews.
– The focus is on learning: don’t select THE most complex part of your code, nor the most trivial.
– Please try to make the sample compile, to save me some time (optional).
– Please anonymize the code: e.g., rename ‘Account’ to ‘Basket’, ‘Transfer’ to ‘Apple’, etc..
– I can’t promise we will refactor all samples you send me – I will select 2/3 of them.