Type codes (magic numbers, strings, or flags that encode “what kind of thing this is”) creep into production systems because they’re quick and easy… at first.
Share this post
8.13. Refactoring Book. Replacing Type Codes…
Share this post
Type codes (magic numbers, strings, or flags that encode “what kind of thing this is”) creep into production systems because they’re quick and easy… at first.