Category: Software Design

Switch statement smells

Switch statement smells

We all know Switch Case statement is very handy to use when we need to write code for decision-making based on some constants, but we can avoid it by using polymorphism or Enums(if preferred)....

Lets stop creating STUPID classes

Lets stop creating STUPID classes

We all write codes in different programming languages but the very common part of it is CLASSES. We all write different classes during programming, and we all mostly end up creating STUPID classes.  ...