Nithin Bekal

Posts About Notes Slides

Code Smells

Categories of code smells

  • bloaters
    • long method
    • large class
    • data clumps
    • long param list
    • primitive obsession
  • toold abusers
    • switch statements
    • refused bequest
    • alt classes with diff interfaces
    • temp field
  • change preventers
    • divergent change
    • shotgun surgery
    • parallel inheritance hierarchies

dispensables

  • lazy class
  • speculative genratlity
  • data class
  • duplicated code

dispensables