• carlito (unregistered) in reply to BillyBob
    I love it when people put their name on source code. Even better, dated as well. All it needed was a signed bug fix somewhere.

    I do that. But it's mostly a warning, akin to "you're not expected to understand this".

  • Twey (unregistered)

    TRWTF: Every single one of those many, many variables is global.

    WOULD YOU DO IT IN C?!

  • More (unregistered) in reply to JimM
    JimM:
    You had to quote it why, exactly? So you could repeat someone else's point verbatim then pretend to be clever because you agree with it? Because it makes you feel important if you comment on the internet? Because you think the rest of us can't read and make our own minds up whether we agree with this or not?.

    Yes.

    Normally when I complement someone on a book / article / piece of code that they wrote that I thought was exceptional, I’m just trying to draw attention to how clever I am. It’s not to draw extra attention to what they wrote, or even just to let them know that there are people who thought it was good. It’s all about me.

    I tried to fool you all, and tried to appear genuine by posting with an anonymous name (not that I am registered) on a website where nobody knows me… but you saw through my disguise :)

    Captcha: valetudo

  • Rohan Prabhu (unregistered)

    on a more serious note, examples like this one make one appreciate the usefullness of a thing as simple as timestamps.

  • Michael (unregistered) in reply to YetAnotherDave
    YetAnotherDave:
    //--- THIS COMMENT WAS DESIGNED BY ----// //--- DAVE------- ON 12/15/2008 -----//

    Seriously, that's an indication that neither TONY B or his supervisors had no clue what version control was.

    So.... tries to remember boolean algebra classes... neither had no clue....hmmm.

    I got it! .... both Tony and his boss know about version control?

    Aren't pedantic programmers great.... actually, I would say that the comment doesn't say anything either way about version control. You don't have to use versioning metadata in your file.

  • asdfasf (unregistered) in reply to STOP IT
    STOP IT:
    TDD Chauvinist:
    The only real WTF is the apparent lack of comprehensive unit tests. The problem with leap years, for example, is only possible because the coder didn't write his tests first.
    The worst enemies of TDD are those who claim or suggest that it can replace programming logic skills.
    There's a really awesome blog post out there in the interwebs from this guy that contracted Thoughtworks (Fowler's company) to do some work for him. The code that they made passed the unit tests they wrote, but the code itself was terrible.

    The problem with TDD is that developers hunger for the light to turn green; forget about things like systems design. It's marketing, really.

  • JimBob (unregistered) in reply to Paul D.
    Paul D.:
    Another WTF is that "this bit of of code was retired and replaced by a read-only field populated by a date-picker". Considering that most (all?) date-pickers are programmed in JavaScript, I won't be able to manually enter a date into read-only field if I have JS turned off?
    Get with the current century. Turn JS on. Ninny.
  • Andrew (unregistered) in reply to Nick J
    Nick J:
    Isn't is about time we decimalised time?

    1 s = 1 second 1 ks = 1000 seconds (16 mins 40 secs) 1 Ms = 1e6 seconds (11 days 13 hours 46 minutes 40 seconds)

    etc...

    No! The French proposed Metric Time, but it expands small units and contracts the larger ones. The distortion would confuse people from Astronomers to Payroll Clerks.

    1 s = 1 second 100 s = 1 Hecto-second ~ 1 + 2/3 minutes (60 s + 40 s) 1000 s = 1 kilo-second ~ 1 + 2/3 hours (about 60 min + 40 min) 10,000 = 10 kilo-seconds < 1 day 20 kilo-seconds ~ 1 day - 2 kilo-second < 1 day

    You write a function to transform time to metric! Also, see the failed metric angle, Gradient.

  • Maarten (unregistered) in reply to Nick J

    You would probably like my Metric Clock Application. The code probably has lots of WTFs, but it works... 100000 seconds each day, 100 in a minute, 100 minutes in an hour, 10 hours a day. My kids actually got used to it...

  • Rodger Combs (unregistered) in reply to Phill

    I've seen passwords MD5-encrypted in the JS "submit" event!

    CAPTCHA: praesent

    Teacher: Bobby? Bobby: Praesent!

  • group buy tools (unregistered)

    Hello. excellent job. I did not anticipate this. This is a splendid articles. Thanks! group buy tools

Leave a comment on “Validating a Date with a Sledgehammer”

Log In or post as a guest

Replying to comment #:

« Return to Article