With the code separated, it's time to replace those conditionals with polymorphism. But first, we have to move the function. Watch me follow the mechanics outlined in the Refactoring book. I stream at / qcoding
You can try this kata yourself too! Here's the source: https://github.com/emilybache/GildedR...
A #LiveCoding series where I do #LegacyCode in #swiftlang