• Andrew (unregistered)

    Frist! I love the Daily WTF, it is always a good reminder of what NOT to do. Thanks!

  • Boaty McBoatface (unregistered)
    Comment held for moderation.
  • dkf (nodebb)

    Bonus points for using Hungarian notation, and triple that bonus for using it wrong.

    Must be Finno-Serbian notation!

  • b.a. freeman (unregistered)

    50 years ago, when there were few libraries available for any platform, it often made sense to roll your own ... but not with timestamps; even the most perfunctory vendor libraries had date functions!

    a truly classic wtf. thanks!

  • devjoe (nodebb) in reply to Boaty McBoatface

    That's just blakeyrat, abusing holes in the comment board in an attempt to get somebody to fix them.

  • PhilJo (unregistered)

    Logging in the 2 least mutually comprehensible European languages is very special

  • Ex-lurker (unregistered)

    Bonus points for using Hungarian notation, and triple that bonus for using it wrong.

    Using it wrong as in "calling INT a variable which you expect will store a string like 'Jan'"? Or simply in using it at all?
  • Tres Trey (unregistered)

    If we assume that the desired month format has changed at some point from numeric to short-name form, I think this may once have been a valid form of Apps Hungarian or Semantic Hungarian, using a prefix to indicate that "this variable holds the month number", even though stored as a string. (I would have preferred numMonth to avoid confusion with the data type, though.)

  • Hans the Great (unregistered)

    Should then be strMonthNum

  • Alsot (unregistered)

    What a newbie mistake. He should have named it "sIntMonth" so it's clear that it's a string that's holding a textual representation of an int (rather than "March").

  • Carl Witthoft (google)

    On behalf of all owners and lovers of mongrels (dogs), we strongly object to the use of "mongrel" as a derogative term. We demand an apology (and a safe space).

  • Herby (unregistered) in reply to Carl Witthoft

    Sorry, the world is an unsafe place. Deal with it.

    We now return you to the regularly scheduled program (WTF).

  • Carl Witthoft (google) in reply to Herby

    And apparently the world is full of people who are completely lacking in humor and sarcasm detectors, too.

  • TenshiNo (unregistered) in reply to Carl Witthoft

    Would have been funnier, if it felt less true...

  • Anonymous (unregistered) in reply to Boaty McBoatface
    Comment held for moderation.
  • Anonymous (unregistered)

    Nobody's mentioned this yet, but I love the fact that this is "M/dd" too. I wonder what happens once October rolls around?

  • Ex-lurker (unregistered) in reply to Anonymous
    I wonder what happens once October rolls around?
    "Oct/01", "Oct/02", "Oct/03"...
  • Some Guy (unregistered) in reply to Ex-lurker

    That's the beauty of this multi layered WTF. The comment's wrong. M is just a single non padding digit for month, returned as a string of course. It's 1/01, 1/02, 1/03. android.text.format.DateFormat uses the same format as SimpleDateFormat.

    Similarly the year comment is wrong as well. yy is a two digit padded year. Fortunately that's never used. Well, I guess you have to look for fortune where you can in this mess.

  • Yazeran (unregistered) in reply to Anonymous

    Yea noticed that too, but who knows:

    Jan => '1' Feb => '2' .. Sep => '9' Oct => 'A' Nov => 'B' Dec => 'C'

    You see, plenty of room in a single digit for all the months and even a few to spare if some jerk like Julius or Augustus shows up and messes with the calendar again..

    Yazeran

    Plan: To go to Mars one day with a hammer.

  • Ron Fox (google)

    You had me with 'date'.

  • I am error (unregistered) in reply to Yazeran

    You see, plenty of room in a single digit for all the months Why stop there when you could store all the dates from 11 to VC in just 2 digits?

  • Hillary C. (unregistered)

    how does it handle dates?

    They're too sensitive to leave to an intern. I nominate a private server for personal male.

  • Ex-lurker (unregistered) in reply to Some Guy

    Crap, you're right! I just looked at the specs and it is as you said.

    So, I guess yesterday the WTF was me.

  • Serb (unregistered)

    Serb here. I think the writer mixed us up with Indians.

  • Aethelheah (unregistered)
    Comment held for moderation.
  • Ceolmaer (unregistered)
    Comment held for moderation.
  • Daryll (unregistered)
    Comment held for moderation.
  • wingsio (unregistered)
    Comment held for moderation.

Leave a comment on “A Dated Inheritance”

Log In or post as a guest

Replying to comment #:

« Return to Article