Antipattern: The Blob
Summary
Description
"The blob is found in designs where one class monopolizes the processing, and other classes primarily encapsulate data."[1] The main issue is "that the majority of the responsibilities are allocated to a single class"[2]
Synonyms
- God Class
- God Component
- God Object
- Winnebago
Solutions
Refactoring
"The key is to move behavior away from The Blob."[3] This can involve reallocation of behavior to the smaller classes surrounding The Blob or splitting The Blob’s functionality into a number of separate classes.
Further Reading
- Brown, William J. et al. (1998) "AntiPatterns" pp.73-84 (The Blob)
References
- ← Previous
Customizing Models with Ollama