Extract Protocol Refactoring (Swift) – Elevate Common Behavior
Extract Protocol lets us generalize our types. Context: You have a class (or other entity), and want to let another class stand in for it in some cases. You could make the other class a subclass. But this couples the Continue reading Extract Protocol Refactoring (Swift) – Elevate Common Behavior