- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Would this work on all enums? Let's try an example:
Frist = 1 Second = 2 Third = 3
Looks good to me. New best practice!
Admin
Ever wondered what it would be like to literally live in the 1400's?
Move to Iran and find out!
Edit Admin
Having an extra month of Adar 2 seven times out of every 19 years says, "Hold my beer".
Admin
Bloody hell, I spent far too long trying to work out if it was some elaborate prioritisation scheme before getting to this part ...
(April = new UK tax year, August = summer sales peak, December = Christmas sales peak ...)
Edit Admin
Will's hypothesis is wrong. The correct formulation is:
Edit Admin
Channeling one of the gods of our computing pantheon, Charles Babbage:
Addendum 2026-02-17 08:18: One can only hope the author of that enum was soon promoted out of coding and into management Where such confusion of ideas rightly dwells.
Edit Admin
The date version of
[true, false, FILE_NOT_FOUND]. 🤣Edit Admin
Sadly, the only real solution is promoting the (...), um, to, um ... Ah, Hell, just stick him in front of the GAU-8 and turn it on.
You do keep a GAU-8 in your back pocket for occasions like this, right?
Edit Admin
You forgot the other American peak, somewhere in the second half of February if memory serves (it usually does not), which is not for Valentine's Day, but Washington's birthday or something like that.
Edit Admin
Frist = 1 Secnod = 2 Thrid = 3
FIFY
Edit Admin
If not for the sorting error, i'd have assumed this enum was auto-generated, such as from a web reference.
Edit Admin
Big thanks to Remy for not spoiling my day by misusing "begs the question"!
Edit Admin
If you're doing a roll-your-own-date validation, you have to remember that September 3rd through 13th 1752 are not valid dates in Britain (let alone what happened in 1582). I mention this having worked on a system that needed to store pre-1753 dates in old versions of SQL Server.
Edit Admin
"which is not for Valentine's Day, but Washington's birthday or something like that." Also known as "The Day Mattresses Go On Sale."