“How did you refactor that?”
After my video about “Primitive Obsession”, a viwer asked me on Twitter how exaclty I refactored the code towards the final result.
Which steps did I take? Which transformations did I perform in the code?
In this video, I want to show you how I would refactor this piece of code to get rid of the primitive obsession.