Chapter 5

Modularization Smells

Abstract

The principle of modularization advocates the creation of cohesive and loosely coupled abstractions. This chapter describes several key techniques that help apply the principle of modularization: localize related data and methods, decompose abstractions to manageable size, create acyclic dependencies, and limit dependencies. It then provides a detailed description of the following design smells that result from the violation of the principle of modularization: Broken Modularization, Insufficient Modularization, Cyclically-dependent Modularization, and Hub-like Modularization.

Keywords

Hub-like modularization; Broken modularization; Cyclically-dependent modularization; Enabling techniques for modularization; ...

Get Refactoring for Software Design Smells now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.