Definition Of Clean Code

Clean Code allows us to write code that is easy to understand by all

Principles Of Clean Code

  • Prefer Polymorphism to “if/else” and “switch”
  • Code should not know about the internals of objects it’s working with
  • Functions should be small
  • Functions should do one thing
  • Don't Repeat Yourself