Refactoring 017 - Convert Attributes to Sets
TL;DR: Using sets for attributes simplifies your code and makes state management easier
Problems Addressed
Mutability
Complexity
Attributes become polluted
Setters
Related Code Smells
https://maximilianocontieri.com/code-smell-35-state-as-pro...
maximilianocontieri.com2 min read