Prefer Objects as Method Parameters, Not Class Names
“Class-oriented programming” over-emphasizes classes. Class-oriented code can only reference constants, which results in classes which use inheritance instead of composition.
This becomes a problem when you want to mix static state and runtime state, because static state is viral, as static state can only compose other static state.
Avoid passing class names as method parameters as much as possible.
Post a comment