Missing Hierarchy

This smell arises when a DESIGN segment uses conditional logic to explicitly manage variation in behavior where a hierarchy could have been created and used to encapsulate those variations.

Related smells: Switch Statement

Tools

The following set of tools detects this smell: Designite(for C#) DesigniteJava(for Java)

Reference

G. Suryanarayana, G. Samarthyam, T. Sharma, “Refactoring for Software Design Smells: Managing Technical Debt”. Morgan Kaufmann, 2014.


Design Smells

Home

All rights reserved (c) Tushar Sharma 2017-23.