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:

F12 Developer Tool is your friend.

I was recently debugging Web Site functionality issue with a client. We were not able to reproduce the issues at our end. I saw that the c...