![cover-img](https://project-assets.showwcase.com/1420x/16381/1669055275782-melissa-askew-tSlvoSZK77c-unsplash.jpg?type=webp)
Code Smell 27 - Associative Arrays
21 November, 2022
7
7
1
Contributors
Problems
•
Coupling
•
Information Hiding
•
Code Duplication
•
Fail Fast
•
Integrity
Solutions
1.
Reify objects
2.
Create cohesive small objects
3.
Don't leave them anaemic, find their cohesive relations.
Sample Code
Wrong
Anaemic
Validated
Right
Degrees deserves reification
Detection
Tags
•
Conclusion
Relations
Credits
There’s nothing more permanent than a temporary hack.