• (cs)

    "The Daily Small Mistake"

    it's a bug, the code is poor, but its not a wtf.

  • (cs) in reply to Anonymous
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!

    Somebody care to explain the joke to me?

  • Here we go now (unregistered) in reply to Larry
    Larry:
    TRWTF is that the month should be last.

    09/2010/December

    It's the only acceptable date format.

    But "and" or "or" are the only conjunctions allowed at the beginning of a sentence... or the end of a date.

    Usually I expect to get some butt at the end of a date.

    OK are our memes mixed enough yet?

  • jdw (unregistered) in reply to wtf
    wtf:
    jdw:
    D Larson:
    Johnny Awkward:
    And, you should have learned the definition of the word "of". But, I did like your use of "But" at the start of your sentence. It reminded me of "Finding Forrester".
    It's more of an homage to the previous article's comments going on and on about grammar, starting a sentence with and/or/but, etc.
    Starting sentences with conjunctions is generally accepted, these days, and only the staunchest prescriptionists will hold it against you.

    Tsk, tsk.

    That's true, but it's still ugly and the calling card of a hopeless illiterate lout.

    Not at all. Several of my professors encouraged the act, if it was a distinct part of our developed style.

    But, perhaps only we who are privileged to have English degrees are allowed to use conjunctions to begin our sentences!

    (Oh, God, I've admitted on TDWTF that I have an English degree.)

  • Here we go now (unregistered) in reply to Izhido
    Izhido:
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!

    Somebody care to explain the joke to me?

    Hint 1: read the joke out loud. Hint 2: Octal 10 is not pronounced "ten".

  • (cs) in reply to Izhido
    Izhido:
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!

    Somebody care to explain the joke to me?

    The joke is...

    why was 6 afraid of 7? because 7 8 9

    I assume you can figure out the rest

  • causa (unregistered) in reply to Here we go now
    Here we go now:
    Izhido:
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!

    Somebody care to explain the joke to me?

    Hint 1: read the joke out loud. Hint 2: Octal 10 is not pronounced "ten".

    Apparently the poster doesn't understand the joke either. If he did, he would have said "was" instead of wasn't.

    What a dumbass.

  • (cs) in reply to Here we go now
    Here we go now:
    Izhido:
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!

    Somebody care to explain the joke to me?

    Hint 1: read the joke out loud. Hint 2: Octal 10 is not pronounced "ten".

    "Octal one zero"?

  • (cs) in reply to causa
    causa:
    Here we go now:
    Izhido:
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!

    Somebody care to explain the joke to me?

    Hint 1: read the joke out loud. Hint 2: Octal 10 is not pronounced "ten".

    Apparently the poster doesn't understand the joke either. If he did, he would have said "was" instead of wasn't.

    What a dumbass.

    Yup. That's the part that confused me. Not being a native English speaker, sometimes the context makes all the difference in the world. Now I get it :)

  • Dave (unregistered) in reply to frits
    frits:
    Here we go now:
    Izhido:
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!

    Somebody care to explain the joke to me?

    Hint 1: read the joke out loud. Hint 2: Octal 10 is not pronounced "ten".

    "Octal one zero"?

    "Octal One Zero" is the name of my concept album about the nine layers of developer hell.

  • Design Pattern (unregistered) in reply to causa
    causa:
    Here we go now:
    Izhido:
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!

    Somebody care to explain the joke to me?

    Hint 1: read the joke out loud. Hint 2: Octal 10 is not pronounced "ten".

    Apparently the poster doesn't understand the joke either. If he did, he would have said "was" instead of wasn't.

    But ... but ...

    THAT'S THE JOKE!

    Octal 6 is NOT afraid of 7, because 7 10 11 does NOT read seven ate nine!

  • (cs) in reply to Here we go now
    Here we go now:
    Izhido:
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!

    Somebody care to explain the joke to me?

    Hint 1: read the joke out loud. Hint 2: Octal 10 is not pronounced "ten".

    hint 3: Octal 10 IS pronounced ten.

  • Spearhavoc! (unregistered) in reply to wtf

    I see what you did there.

  • I'm not the one with the elephant head (unregistered) in reply to Anonymous
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!
    lol I gotta share that with my kids.
  • Toster (unregistered) in reply to TheJasper
    TheJasper:
    hint 3: Octal 10 IS pronounced ten.

    Is it? Well it could work this way till base 10, but what about after? How would you pronounce 1A?

  • neminem (unregistered)

    I've always been a fan of: Why do programmers celebrate Christmas on Halloween? Because Oct 31 = 12 25

  • Cleveland Brown (unregistered) in reply to Toster
    Toster:
    TheJasper:
    hint 3: Octal 10 IS pronounced ten.

    Is it? Well it could work this way till base 10, but what about after? How would you pronounce 1A?

    Agreed. How would you count in binary? one, ten, eleven, one-hundred, one-hundred and one, one-hundred and ten, one-hundred and eleven, one-thousand...although this is how I overheard my 6-year-old counting during hide-and-go-seek the other day.

  • causa (unregistered) in reply to Cleveland Brown
    Cleveland Brown:
    Toster:
    TheJasper:
    hint 3: Octal 10 IS pronounced ten.

    Is it? Well it could work this way till base 10, but what about after? How would you pronounce 1A?

    Agreed. How would you count in binary? one, ten, eleven, one-hundred, one-hundred and one, one-hundred and ten, one-hundred and eleven, one-thousand...although this is how I overheard my 6-year-old counting during hide-and-go-seek the other day.
    Yeah. I'm going to go ahead and put some Elmer's on the back of "dumbass" and stick that label back on the original poster.

  • Anonymous (unregistered) in reply to causa
    causa:
    Here we go now:
    Izhido:
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!

    Somebody care to explain the joke to me?

    Hint 1: read the joke out loud. Hint 2: Octal 10 is not pronounced "ten".

    Apparently the poster doesn't understand the joke either. If he did, he would have said "was" instead of wasn't.

    What a dumbass.

    So that's why it never gets a laugh - nobody actually understands it!

    The original joke is: "why was six afraid of seven - because seven ate nine".

    The octal version is: "why wasn't octal six afraid of seven - because seven ten eleven".

    Do you understand it now or should I talk even slower for you? Dumbass indeed, well said.

  • Mr. Bob (unregistered)

    What about that extra month between March and April?

    Lousy Smarch weather...

  • causa (unregistered) in reply to Anonymous
    Anonymous:
    causa:
    Here we go now:
    Izhido:
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!

    Somebody care to explain the joke to me?

    Hint 1: read the joke out loud. Hint 2: Octal 10 is not pronounced "ten".

    Apparently the poster doesn't understand the joke either. If he did, he would have said "was" instead of wasn't.

    What a dumbass.

    So that's why it never gets a laugh - I don't actually understand it!

    The original joke is: "why was six afraid of seven - because seven ate nine".

    The octal version is: "why was octal six afraid of seven - because seven eight nine".

    FTFY

  • (cs) in reply to jdw
    jdw:
    ...snip

    (Oh, God, I've admitted on TDWTF that I have an English degree.)

    Funny, I would have thought you would say "(I've admitted on TDWTF that I have a degree in English)." I suspect your diploma is in English, and probably Latin.

  • Larry (unregistered) in reply to YourNameHere
    YourNameHere:
    jdw:
    ...snip

    (Oh, God, I've admitted on TDWTF that I have an English degree.)

    Funny, I would have thought you would say "(I've admitted on TDWTF that I have a degree in English)." I suspect your diploma is in English, and probably Latin.
    TRWTF is universities in England.

  • Gary (unregistered)

    Ok, I'm late to the party, and don't know anything about coldfusion, but isn't the pattern here a one-liner, something along the lines of:

    <cfset monthvar="right('0' + #month#,2)"/>
  • A Certain Developer (unregistered)

    Fools! The case is way more faster than using DateFormat()!

  • Anonymous (unregistered) in reply to causa
    causa:
    Anonymous:
    causa:
    Here we go now:
    Izhido:
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!

    Somebody care to explain the joke to me?

    Hint 1: read the joke out loud. Hint 2: Octal 10 is not pronounced "ten".

    Apparently the poster doesn't understand the joke either. If he did, he would have said "was" instead of wasn't.

    What a dumbass.

    So that's why it never gets a laugh - nobody actually understands it!

    The original joke is: "why was six afraid of seven - because seven ate nine".

    The octal version is: "why wasn't octal six afraid of seven - because seven ten eleven".

    Do you understand it now or should I talk even slower for you? Dumbass indeed, well said.

    Translated Quote: I simply don't understand this joke.
    So you don't understand, that's absolutely fine, but it doesn't change anything and it doesn't re-write the joke. I've explained it to you perfectly well, if you still don't get it then you're better off just forgetting about it. I knew it was a lousy joke but come on, this is ridiculous.

  • Gary (unregistered) in reply to Anonymous
    Anonymous:
    So you don't understand, that's absolutely fine, but it doesn't change anything and it doesn't re-write the joke. I've explained it to you perfectly well, if you still don't get it then you're better off just forgetting about it. I knew it was a lousy joke but come on, this is ridiculous.

    OK, can we complain about the comma splices/runon sentences then?

  • just me (unregistered) in reply to Toster

    Obviously that would be ateen, duh.

  • Dr. Evil (unregistered) in reply to Anonymous
    Anonymous:
    causa:
    Anonymous:
    causa:
    Here we go now:
    Izhido:
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!

    Somebody care to explain the joke to me?

    Hint 1: read the joke out loud. Hint 2: Octal 10 is not pronounced "ten".

    Apparently the poster doesn't understand the joke either. If he did, he would have said "was" instead of wasn't.

    What a dumbass.

    So that's why it never gets a laugh - nobody actually understands it!

    The original joke is: "why was six afraid of seven - because seven ate nine".

    The octal version is: "why wasn't octal six afraid of seven - because seven ten eleven".

    Do you understand it now or should I talk even slower for you? Dumbass indeed, well said.

    Translated Quote: I simply don't understand this joke.
    So you don't understand, that's absolutely fine, but it doesn't change anything and it doesn't re-write the joke. I've explained it to you perfectly well, if you still don't get it then you're better off just forgetting about it. I knew it was a lousy joke but come on, this is ridiculous.

    You are right, the joke is more of an "aha!" and less funny. You did explain it right, and to beat this dead horse for the dumbasses who insist on refusing to understand octal numbers is rather pointless.

    6 is not afraid!!! There will be no eating tonight!!!

  • (cs) in reply to I'm not the one with the elephant head
    I'm not the one with the elephant head:
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!
    lol I gotta share that with my kids.
    Great. Show them this version. (It's my 10-year-old's favorite.) http://www.youtube.com/watch?v=x1cnJ_pOAdQ
  • (cs) in reply to RHuckster
    RHuckster:
    Anonymous:
    Never seen an article on here without any comments before

    The correct way to comment on this is to say "JanuaryST"

    FTFY.

  • (cs) in reply to RogerC
    RogerC:
    RHuckster:
    Anonymous:
    Never seen an article on here without any comments before

    The correct way to comment on this is to say "JnauaryST"

    FTFY.
    FTFTFY

  • (cs) in reply to Cleveland Brown

    +1 on the digit sequence 10 being pronounced "ten" in any base.

    I would pronounce 1A "one-ay" or "ay-teen" which I admit sounds uncomfortably close to "eighteen". I don't consider pronouncing it "twenty-six" to be a reasonable workaround.

    I would count in binary much the same way that Cleveland Brown does, possibly dropping the "and"s and starting at zero.

    Off to play some tennis...

  • Jay (unregistered) in reply to neminem
    neminem:
    I've always been a fan of: Why do programmers celebrate Christmas on Halloween? Because Oct 31 = 12 25

    Umm, I think that was supposed to be, "Because Oct 31 = Dec 25". Or was this intended to be a joke going back to the original post?

  • whiskeyjack (unregistered) in reply to Anonymous
    Anonymous:
    Yep, that's exactly the same response this joke gets IRL. I once got a chuckle of out of a Math major, but I think it was out of pity.

    I got the joke, and I laughed.

    ... maybe that means the joke was on me, though.

  • Jay (unregistered)

    Nothing to do with computers, but this conversation reminds me of another misquoted joke.

    Perhaps you've heard that, I think it was Harry Truman once said, "If all the economists in the country were laid end to end, they'd still point in different directions."

    I once heard someone tell this joke as, "If all the economists in the country were laid end to end, they'd still disagree!"

    I can only conclude that the joke teller remembered that there was something funny about the line, but couldn't quite remember what.

  • JMM (unregistered) in reply to Anonymous

    A more imaginative version is:

    There are only 10 kinds of people in the world. Those who can understand binary and those who can't.

  • Anonymous (unregistered) in reply to whiskeyjack
    whiskeyjack:
    Anonymous:
    Yep, that's exactly the same response this joke gets IRL. I once got a chuckle of out of a Math major, but I think it was out of pity.

    I got the joke, and I laughed.

    Thank you! You are in a small minority but I appreciate it!
  • Zapp Brannigan (unregistered)

    Most programmers, never got dates in high school and college. Now that they're working in the real world many of them still don't get dates.

  • Paula (unregistered) in reply to Mr. Bob
    Mr. Bob:
    What about that extra month between March and April?

    Lousy Smarch weather...

    Damn! I need to get on here earlier, as someone stole my thunder with a Smarch reference. Darth??? Can you help us out???

  • Darth wtf (unregistered) in reply to Paula
    Paula:
    Mr. Bob:
    What about that extra month between March and April?

    Lousy Smarch weather...

    Damn! I need to get on here earlier, as someone stole my thunder with a Smarch reference. Darth??? Can you help us out???

    I have whatevered your whatever. Pray I do not...

    sorry, I'm just not feeling it. I think this one's done.

  • (cs) in reply to The Enterpriser
    The Enterpriser:
    "The Daily Small Mistake"

    it's a bug, the code is poor, but its not a wtf.

    As far as I'm concerned, any practice that would cause a generally-decent programmer to exclaim/inquire "WTF?" deserves to be on this site, small mistake or not.

    The original programmer used a freakin' switch-case to zero-pad a number, and he couldn't even get that right. If you think that's not so bad, then I don't ever want to maintain code you've written.

  • (cs) in reply to wtf
    wtf:
    That's true, but it's still ugly and the calling card of a hopeless illiterate lout.

    But I resemble that remark.

    MArk B. My new goal in life is to be called a lout by someone in person and not just on the internetz.

  • Dan (unregistered) in reply to uuang
    George Michael:
    The Corrector:
    Anonymous Prime:
    coldfusion is not physically possible
    FTFY

    You gotta have faith!

    Fixed the name for you

  • Design Pattern (unregistered) in reply to anon
    anon:
    You know, most sensible programming languages (and real life as well), a leading zero does not symbolize octal.
    So good luck that ColdFusion belongs to those sensible programming languages .

    And even better, that it doesn't meddle with your data in unpredictable and purely idiotic ways! (Also read the comments...)

    Wait, that blog is called coldfusionjedi?

    I have coldfusioned your webpage! Pray that i don't fusion it any colder!

    CAPTCHA: opto - was that a trailing zero on a perfectly normal opt?

  • causa (unregistered) in reply to Dr. Evil
    Dr. Evil:
    Anonymous:
    causa:
    Anonymous:
    causa:
    Here we go now:
    Izhido:
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!

    Somebody care to explain the joke to me?

    Hint 1: read the joke out loud. Hint 2: Octal 10 is not pronounced "ten".

    Apparently the poster doesn't understand the joke either. If he did, he would have said "was" instead of wasn't.

    What a dumbass.

    So that's why it never gets a laugh - nobody actually understands it!

    The original joke is: "why was six afraid of seven - because seven ate nine".

    The octal version is: "why wasn't octal six afraid of seven - because seven ten eleven".

    Do you understand it now or should I talk even slower for you? Dumbass indeed, well said.

    Translated Quote: I simply don't understand this joke.
    So you don't understand, that's absolutely fine, but it doesn't change anything and it doesn't re-write the joke. I've explained it to you perfectly well, if you still don't get it then you're better off just forgetting about it. I knew it was a lousy joke but come on, this is ridiculous.

    You are right, the joke is more of an "aha!" and less funny. You did explain it right, and to beat this dead horse for the dumbasses who insist on refusing to understand octal numbers is rather pointless.

    6 is not afraid!!! There will be no eating tonight!!!

    Sorry. Both of you are just number fail. Expressing a number in some other base does not make it a different number. That at least should be obvious. If I wrote "ten, base 8", it would be "12" which would still be "ten". It is absurdly simple to perceive that when you get to the number past nine (base 10), there is nothing to correlate the name of that number to the digits representing it. Heck, "ten" is a shorter word than "nine." Look, I know you guys aren't native English speakers and have a limp-wristed grasp of the English language, so here it is in a table. Goddamn you, askimet!

  • Allan Olesen (unregistered) in reply to boog

    In my opinion, the all to elaborate way to accomplish the zero-padding is not a WTF.

    But having a function which at a short glance can be seen to return 1, 2, 3... 10, 11, December IS a WTF.

    How can a mistake like that go unnoticed by the programmer who wrote it, unless he worked in a programming environment with less than 4 code lines visible on screen. ?

  • Sgt. Lee Ermy (unregistered) in reply to causa
    causa:
    Dr. Evil:
    Anonymous:
    causa:
    Anonymous:
    causa:
    Here we go now:
    Izhido:
    Anonymous:
    @Deprecated:
    TRWTF is writing the octal number '08'. That must be one of those imaginary numbers, like eleventeen or thirty-twelve.
    Why wasn't octal 6 afraid of 7? Because 7 10 11!

    Somebody care to explain the joke to me?

    Hint 1: read the joke out loud. Hint 2: Octal 10 is not pronounced "ten".

    Apparently the poster doesn't understand the joke either. If he did, he would have said "was" instead of wasn't.

    What a dumbass.

    So that's why it never gets a laugh - nobody actually understands it!

    The original joke is: "why was six afraid of seven - because seven ate nine".

    The octal version is: "why wasn't octal six afraid of seven - because seven ten eleven".

    Do you understand it now or should I talk even slower for you? Dumbass indeed, well said.

    Translated Quote: I simply don't understand this joke.
    So you don't understand, that's absolutely fine, but it doesn't change anything and it doesn't re-write the joke. I've explained it to you perfectly well, if you still don't get it then you're better off just forgetting about it. I knew it was a lousy joke but come on, this is ridiculous.

    You are right, the joke is more of an "aha!" and less funny. You did explain it right, and to beat this dead horse for the dumbasses who insist on refusing to understand octal numbers is rather pointless.

    6 is not afraid!!! There will be no eating tonight!!!

    Sorry. Both of you are just number fail. Expressing a number in some other base does not make it a different number. That at least should be obvious. If I wrote "ten, base 8", it would be "12" which would still be "ten". It is absurdly simple to perceive that when you get to the number past nine (base 10), there is nothing to correlate the name of that number to the digits representing it. Heck, "ten" is a shorter word than "nine." Look, I know you guys aren't native English speakers and have a limp-wristed grasp of the English language, so here it is in a table. Goddamn you, askimet!
    YAH JACKWAGON!

  • ÃÆâ€℠(unregistered)

    And what?

  • Mememaster (unregistered) in reply to Allan Olesen
    Allan Olesen:
    In my opinion, the all to elaborate way to accomplish the zero-padding is not a WTF.

    But having a function which at a short glance can be seen to return 1, 2, 3... 10, 11, December IS a WTF.

    How can a mistake like that go unnoticed by the programmer who wrote it, unless he worked in a programming environment with less than 4 code lines visible on screen. ?

    Yeah, everyone knows that the function should return Apples, 1, 2, 3... 10, 11, SHIVA_NOT_FOUND. At least in inhabited solar systems with no cold fusion systems.

Leave a comment on “Cold Date Conversion”

Log In or post as a guest

Replying to comment #:

« Return to Article