A poorly designed enum mixes months, days of the week, and a 'PublicHoliday' entry into a single 'Calendar' type, sorted alphabetically rather than logically. The enum assigns arbitrary numeric values (April=0, Friday=4, October=12, etc.) creating a confusing data structure that conflates unrelated calendar concepts. This represents a common anti-pattern where developers incorrectly group related-but-distinct concepts into one structure.
134 Impressions