Tuesday, December 10, 2013

Switch is bad.

Switch statement in c# code is bad smell.
It should be replaced by strategy pattern.
It doesn't allow us to implement polymorphism which is a key concept of oops

No comments: