• Hanzito (unregistered)

    Would this work on all enums? Let's try an example:

    Frist = 1 Second = 2 Third = 3

    Looks good to me. New best practice!

  • JPJ (unregistered)

    Ever wondered what it would be like to literally live in the 1400's?

    Move to Iran and find out!

  • (nodebb)

    Having an extra month of Adar 2 seven times out of every 19 years says, "Hold my beer".

  • COBOL Dilettante (unregistered)
    this enum clearly was meant to be sorted in alphabetical order

    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 ...)

  • (nodebb)

    Will offers the hypothesis that some clever developer was trying to optimize compile times

    Will's hypothesis is wrong. The correct formulation is:

    some "clever" developer was trying to optimize compile times

  • (nodebb)

    Channeling one of the gods of our computing pantheon, Charles Babbage:

    I am not able to rightly apprehend the kind of confusion of ideas that could provoke such an enum

    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.

  • (nodebb)

    The date version of [true, false, FILE_NOT_FOUND]. 🤣

  • (nodebb) in reply to WTFGuy

    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?

  • (nodebb) in reply to COBOL Dilettante

    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 ...)

    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.

  • (nodebb) in reply to Hanzito

    Frist = 1 Second = 2 Third = 3

    Frist = 1 Secnod = 2 Thrid = 3

    FIFY

  • (nodebb)

    If not for the sorting error, i'd have assumed this enum was auto-generated, such as from a web reference.

  • (nodebb)

    Big thanks to Remy for not spoiling my day by misusing "begs the question"!

  • (nodebb)

    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.

  • (nodebb)

    "which is not for Valentine's Day, but Washington's birthday or something like that." Also known as "The Day Mattresses Go On Sale."

  • Hasseman (unregistered)
    Comment held for moderation.
  • Brian (unregistered) in reply to Steve_The_Cynic
    Comment held for moderation.

Leave a comment on “Waiting for October”

Log In or post as a guest

Replying to comment #691410:

« Return to Article