Divergent change smell

From CSSEMediaWiki
Jump to: navigation, search

This smell refers to making unrelated changes in the same location. If you're doing this, you're almost certainly violating the principles of one key abstraction and separation of concerns, and you should refactor your code. A common refactoring technique for fixing this is Extract Class.

See also

  • Code smells


Code smells
Class Level: Alternative classes with different interfaces smell | Data class smell | Data clumps smell | Divergent change smell | Duplicate code smell | Inappropriate intimacy smell | Incomplete library class smell | Large class smell | Lazy class smell | Message chain smell | Middle man smell | Parallel inheritance hierarchies smell | Primitive obsession smell | Refused bequest smell | Shotgun surgery smell | Speculative generality smell | Temporary field smell

Method Level: Comments smell | Feature envy smell | Long method smell | Long parameter list smell | Switch statement smell

Retrieved from "https://oowisdom.csse.canterbury.ac.nz/index.php?title=Divergent_change_smell&oldid=9412"
Category:
  • Code smells
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • 132.181.106.233
  • Talk for this IP address
  • Log in / create account
Navigation
  • Main page
  • Community portal
  • Current events
  • Recent changes
  • Random page
  • Help
 
Toolbox
  • What links here
  • Related changes
  • Special pages
  • Permanent link
Powered by MediaWiki
  • This page was last modified on 25 November 2010, at 03:18.
  • This page has been accessed 4,539 times.
  • Privacy policy
  • About CSSEMediaWiki
  • Disclaimers