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

2m read time From thedailywtf.com
Post cover image

Sort: