• What do you expect from a Agile company (unregistered)

    Why do I feel like a bounty hunter is after me?

  • Boba Fett (unregistered) in reply to What do you expect from a Agile company
    What do you expect from a Agile company:
    Why do I feel like a bounty hunter is after me?

    You must be getting paranoid. Nobody's after you. Now just relax and go about your daily routine as normal.

  • OldPeter (unregistered)

    For me, this 0!=0 snippet very much looks like a desperate implementation of debugging code, disabled for the final runtime version. Not clean, not standard (like #ifdef debug or something like that), but working, kind of.

  • Rich (unregistered)

    Maybe the Jerky Boys do web site development now? http://www.ebaumsworld.com/audio/play/80777044/

  • (cs) in reply to pjt33
    pjt33:
    Arne:
    I once worked with an EE guy who told this joke:

    Any working program can be converted to a non-working program by removing or changing one instruction. By induction, we know you can reduce any working program to a broken program containing only a single statement. Therefore, you can create a working program by starting with the statement "x=0" and then debugging it.

    TRWTF was that his code looked like he really did it that way...

    You can tell he was an EE rather than a mathmo because the inductive step doesn't work. You need to strengthen it to "Any program, working or not, which contains more than one instruction, can be converted into a program, working or not, by removing an instruction". Prove that and you can apply induction.

    Well, only math types are that desperate to proof obvious statements. Engineers just assume their interlocutor can sort it out.

    But you have a point. The possibility that the program may somehow start functioning after you remove a statement is non-trivial.

  • qbolec (unregistered) in reply to Arne
    Arne:
    I once worked with an EE guy who told this joke:

    Any working program can be converted to a non-working program by removing or changing one instruction. By induction, we know you can reduce any working program to a broken program containing only a single statement. Therefore, you can create a working program by starting with the statement "x=0" and then debugging it.

    we call it TDD
  • qbolec (unregistered)
    rast:
    I hate to kick the dog, but...

    https://homebanking.pacu.com/homebanking.asp

    shouldn't the stories be anonymised ?

  • qbolec (unregistered) in reply to lex

    Also, the 0!=0 is obviously server side generated from a template which supports placeholders, like {MAGIC}!=0

  • (cs)

    I detest the auto-timeouts that are rampant on financial sites like that; any time I need to get up to use the bathroom, answer the phone, or get coffee, or even spend more than a momentary length scrutinizing my statement on the screen before clicking something to move on to something else, I get unceremoniously dumped from the site and have to log in again and re-navigate to the thing I want.

  • Zanaran (unregistered)

    So, are we going to have another day without a wtf? WTF?

  • (cs) in reply to joe blow
    joe blow:
    dog lover:
    frits:
    Who hasn't kicked something like this? [image]
    this is not funny and is sad on so many levels i can't believe you would even joke about this obviously kicking dogs is bad but i can't believe anyone would let this dog get this obese i think the owners should be force fed until they can feel the same misery
    Don't worry, the next scene is the workout montage, where we see the dog progress from trotting to chasing down frisbees all the upbeat melody of "Walking on Sunshine."

    That's great, soon he will be able to feel those kicks. Right now he's like a walking heavy bag...

  • владимир (unregistered)

    Yo dog, imma let you finish, but javascript is the best language evar.

  • владиР(unregistered) in reply to qbolec
    qbolec:
    rast:
    I hate to kick the dog, but...

    https://homebanking.pacu.com/homebanking.asp

    shouldn't the stories be anonymised ?

    TDWTF is TRWTF

  • SlyJeff (unregistered) in reply to dtobias
    dtobias:
    I detest the auto-timeouts that are rampant on financial sites like that; any time I need to get up to use the bathroom, answer the phone, or get coffee, or even spend more than a momentary length scrutinizing my statement on the screen before clicking something to move on to something else, I get unceremoniously dumped from the site and have to log in again and re-navigate to the thing I want.
    And yet, if the app didn't time out and you left it for a few hours only to come back and find your account empty, you'd be screaming for blood. Well, maybe you wouldn't, but someone else would and the bank would be found at fault for lax security.

    Bank security is no joke. Security makes everyone's life more difficult/annoying, but that's part of living in a world where others will take advantage of you if you don't secure things of value.

  • (cs)

    I wonder if the government has a field in citizen records called "WasBucketKicked"?

  • dog lover (unregistered) in reply to frits
    frits:
    joe blow:
    dog lover:
    frits:
    Who hasn't kicked something like this? [image]
    this is not funny and is sad on so many levels i can't believe you would even joke about this obviously kicking dogs is bad but i can't believe anyone would let this dog get this obese i think the owners should be force fed until they can feel the same misery
    Don't worry, the next scene is the workout montage, where we see the dog progress from trotting to chasing down frisbees all the upbeat melody of "Walking on Sunshine."

    That's great, soon he will be able to feel those kicks. Right now he's like a walking heavy bag...

    Jackass
  • jesus-2.0 (unregistered)

    he must be a lolcode programmer forced into javascript to pay the bills.. that could explain it all.

  • EatenByAGrue (unregistered)

    The original post left out the fact that this JS excerpt was taken from another file named michael_vick.js

  • (cs) in reply to lex
    Mike:
    WasDogKicked is obviously referring to a watchdog timer, which is commonly found on embedded systems.
    lex:
    Is 0!=0 also commonly found on embedded systems?
    Is JavaScript also commonly found on embedded systems?
  • frits (unregistered) in reply to dog lover
    dog lover:
    frits:
    joe blow:
    dog lover:
    frits:
    Who hasn't kicked something like this? [image]
    this is not funny and is sad on so many levels i can't believe you would even joke about this obviously kicking dogs is bad but i can't believe anyone would let this dog get this obese i think the owners should be force fed until they can feel the same misery
    Don't worry, the next scene is the workout montage, where we see the dog progress from trotting to chasing down frisbees all the upbeat melody of "Walking on Sunshine."

    That's great, soon he will be able to feel those kicks. Right now he's like a walking heavy bag...

    Jackass
    Nope, still looks like a dog too me.
  • (cs) in reply to Ebbe
    Ebbe:
    lex:
    Is 0!=0 also commonly found on embedded systems?
    In the thirty years, I have spent in the embedded world, I have seen a lot of crappy code. Most of it was written by electronics engineers, who hadn't got much of a clue on how to write software properly (as in "how hard can it be?"). So even though I haven't seen that exact construct myself, I wouldn't be overly surprised if it was found here and there.
    It looks like whoever coded that wanted to comment something out without actually commenting it out...did that even make sense?
  • (cs) in reply to dog lover
    dog lover:
    frits:
    Who hasn't kicked something like this? [image]
    this is not funny and is sad on so many levels i can't believe you would even joke about this obviously kicking dogs is bad but i can't believe anyone would let this dog get this obese i think the owners should be force fed until they can feel the same misery
    This is what happens when you leave food out all day for a dog. Dogs are bolters - they'll eat anything left out for them until they burst. This poor guy needs to be put on a diet!
  • Gary Olson (unregistered) in reply to boog
    Fer:
    Never mind the timeout; what're the units for WasDogKicked.value? Meters?
    Feet, of course. Do you use a different part of your anatomy for kicking? Should we be measuring in peglegs?

    Or is kicking this dog an adage such as kicking the bucket?

  • влР(unregistered) in reply to MarkJ
    MarkJ:
    dog lover:
    frits:
    Who hasn't kicked something like this? [image]
    this is not funny and is sad on so many levels i can't believe you would even joke about this obviously kicking dogs is bad but i can't believe anyone would let this dog get this obese i think the owners should be force fed until they can feel the same misery
    This is what happens when you leave food out all day for a dog. Dogs are bolters - they'll eat anything left out for them until they burst. This poor guy needs to be put on a diet!
    Nah, just clone him and start over.
  • Eagles FAN (unregistered)

    shouldn't the script reference Michael Vick somewhere?

  • Zebedee (unregistered) in reply to joe blow

    In EverQuest 2 there was an instance where you had to kick a cat to pop a mob, but loads of people complained so they changed it to a bucket. It's a freekin' video game ffs!

  • The Typinator (unregistered) in reply to Gary Olson
    Gary Olson:
    Fer:
    Never mind the timeout; what're the units for WasDogKicked.value? Meters?
    Feet, of course.
    FTFY
  • anonimouse (unregistered) in reply to dog lover
    dog lover:
    frits:
    Who hasn't kicked something like this? [image]
    this is not funny and is sad on so many levels i can't believe you would even joke about this obviously kicking dogs is bad but i can't believe anyone would let this dog get this obese i think the owners should be force fed until they can feel the same misery

    sniffsniff* Obvious Troll is obvious.

    Why you kick my dog?! Now my dog need operation!

  • enaud (unregistered)

    Shouldn't this code be reported to the RSPCA? Animal cruelty is no laughing matter...

  • Jeremy (unregistered) in reply to MarkJ
    MarkJ:
    dog lover:
    frits:
    Who hasn't kicked something like this? [image]
    this is not funny and is sad on so many levels i can't believe you would even joke about this obviously kicking dogs is bad but i can't believe anyone would let this dog get this obese i think the owners should be force fed until they can feel the same misery
    This is what happens when you leave trolls out all day for a dog lover.

    FTFY

  • Zanaran (unregistered)

    One WTF in the last nine days. What happened to the "daily?"

  • wtf (unregistered) in reply to Zanaran
    Zanaran:
    One WTF in the last nine days. What happened to the "daily?"
    Except that it's more like one WTF in the last 19 days, and even that was a tired, old, recycled boolean parse that shows up nearly every month.

    So, the last real wtf that we had was on the 16th or the 17th of this month (some say that the photoshopped and recycled Error'ds may be amusing but not really a wtf)

    December 21th: Boss reads employee email--not a wtf, happens everywhere. December 22nd: A comment is old/inaccurate--not a wtf if you've ever maintained any code. December 27th: Someone wrote a timeout that used the "watchdog" terminology found in any freshman-level networking class--is the wtf that Alex never took a networking class?

    Normally I don't complain, and I realize that some people are off of work, but for those of us without vacation, we are enduring the boredom of desk duty and a little TDWTF is what I need after I've read all of CNN, NYT, NYPost, Google News, Digg, ...

  • (cs)

    Seriously, who wouldn't kick one of these? [image]

  • (cs) in reply to frits
    frits:
    Yo dawg, I heard you like ice cream...
  • Randy Snicker (unregistered) in reply to frits
    frits:
    Seriously, who wouldn't kick one of these? [image]
    A guy who strangles puppies? Sure, why not.
  • (cs) in reply to wtf
    wtf:
    Except that it's more like one WTF in the last 19 days, and even that was a tired, old, recycled boolean parse that shows up nearly every month.

    So, the last real wtf that we had was on the 16th or the 17th of this month (some say that the photoshopped and recycled Error'ds may be amusing but not really a wtf)

    Is it really the 35th already? Damn, time really flies during the holidays, amirite?

  • Voo (unregistered)

    Well not really WTFesque. Not the best variable name (but then it's local and not too confusing) and using something like if(false) to escape code isn't that rare either (e.g. the language doesn't allow nested multi level comments and you for whatever reason haven't found the shortcut by your IDE to comment out multiple single lines [ctrl-7 how I love thee]).

    Not the best coding practice but I don't see why that'd make maintaining the code especially hard.

  • (cs) in reply to boog
    boog:
    Noman:
    The original coder was referring to the watchdog, which is a common name for timers of a certain sort. It's not really wtf-worthy.
    It seems your sense of humor is in desperate need of tuning.
    It seems your sense of humour is tuned by being a hopeless noob! Wow, there's a thing called a "watchdog timer". It gets "kicked", "tickled", "patted" or "stroked". Big woop. Oh my aching sides. But not by any stretch of the definition is it a WTF.

    If you find bog-standard computer terminology funny, you must be the kind of person who still laughs at man-page jokes.

  • (cs) in reply to trwtf
    trwtf:
    Arne:
    I once worked with an EE guy who told this joke:

    Any working program can be converted to a non-working program by removing or changing one instruction. By induction, we know you can reduce any working program to a broken program containing only a single statement. Therefore, you can create a working program by starting with the statement "x=0" and then debugging it.

    Sounds like a pretty good summary of "iterative development" to me.

    Actually it's more like the old joke about how you carve a statue of an elephant. First, get a huge big cube of marble. The statue is already in there; now it's just a matter of unpacking it! Simply remove everything that isn't part of the elephant, and there you go.

    Similarly, I begin every program by cat'ing a hundred meg of /dev/random into a file, and then removing the bytes that are wrong.

  • (cs) in reply to Ben
    Ben:
    Quentin:
    rast:
    I hate to kick the dog, but...

    https://homebanking.pacu.com/homebanking.asp

    Oh my god... if you click on the "Accounts" link, you get a login page... with a captcha that always has the same word (try refreshing). WTF!

    Different word if you clear cookies, so not a WTF.

    I left a tab open on the image URL itself, and when I went back and refreshed it five or ten minutes later the word changed, so there's a timeout as well. But, as you say ...
    Ben:
    But, still, a terrible, terrible captcha. Their image library couldn't distort the text? Four letters?
    ... which means that a script can just fetch the same image a few hundred times and average it out and all the background noise will disappear giving you a perfect clear copy of the text to feed to your OCR algorithm. They might as well not bother.
  • (cs) in reply to Mike
    Mike:
    Urk. Who writes IA-32 assembly in 2010, seriously.
    Plenty of folk, as it happens. Anyone who needs serious stream processing throughput will code directly to one of the SSEx instruction sets. Take a look at any open source media player, for example.
  • Jeff Grigg (unregistered) in reply to Paul
    Paul:
    I doubt anyone's ever heard of a watchcat.

    I have: Trained big cats. Pretty scary, actually; they don't bark, they just attack.

    Dogs work better: Easier to train, and they scare tresspassers off BEFORE they enter.

  • Jeff Grigg (unregistered) in reply to Paul
    Paul:
    I doubt anyone's ever heard of a watchcat.

    I have: Trained big cats. Pretty scary, actually; they don't bark, they just attack.

    Dogs work better: Easier to train, and they scare tresspassers off BEFORE they enter.

  • Jeff Grigg (unregistered)

    Have you stopped kicking you dog yet?

    And, silly boys; you SKIN a cat.

    ;->

  • Roy Horn (unregistered) in reply to Jeff Grigg
    Jeff Grigg:
    Paul:
    I doubt anyone's ever heard of a watchcat.

    I have: Trained big cats. Pretty scary, actually; they don't bark, they just attack.

    Dogs work better: Easier to train, and they scare tresspassers off BEFORE they enter.

    Und zey are zupah zafe, ya?

  • (cs) in reply to DaveK
    DaveK:
    It seems your sense of humour is tuned by being a hopeless noob! blah blah self-satisfaction blah
    Because clearly I was giggling like "a hopeless noob". There's no way I was just hassling him for explaining something that everyone already knew.

    Yes, the author was talking about a watchdog. Duh. If you feel the need to explain it, you're taking this site way too seriously.

  • (cs) in reply to SlyJeff
    SlyJeff:
    dtobias:
    I detest the auto-timeouts that are rampant on financial sites like that; any time I need to get up to use the bathroom, answer the phone, or get coffee, or even spend more than a momentary length scrutinizing my statement on the screen before clicking something to move on to something else, I get unceremoniously dumped from the site and have to log in again and re-navigate to the thing I want.
    And yet, if the app didn't time out and you left it for a few hours only to come back and find your account empty, you'd be screaming for blood. Well, maybe you wouldn't, but someone else would and the bank would be found at fault for lax security.

    Bank security is no joke. Security makes everyone's life more difficult/annoying, but that's part of living in a world where others will take advantage of you if you don't secure things of value.

    When I'm at home by myself accessing a bank site, who am I being protected from when the session times out?

  • (cs) in reply to Arne
    Arne:
    <<snip>>

    I once worked with an EE guy who told this joke:

    Any working program can be converted to a non-working program by removing or changing one instruction. By induction, we know you can reduce any working program to a broken program containing only a single statement. Therefore, you can create a working program by starting with the statement "x=0" and then debugging it.

    TRWTF was that his code looked like he really did it that way...

    That's how evolution built you.

    How's that working out?

  • (cs) in reply to D-Coder
    D-Coder:
    Arne:
    <<snip>>

    I once worked with an EE guy who told this joke:

    Any working program can be converted to a non-working program by removing or changing one instruction. By induction, we know you can reduce any working program to a broken program containing only a single statement. Therefore, you can create a working program by starting with the statement "x=0" and then debugging it.

    TRWTF was that his code looked like he really did it that way...

    That's how evolution built you.

    How's that working out?

    Evolution (the process not any particular branch) always wins.

  • Limao Luo (unregistered)

    TRWTF is that

    if (0!=0)
    in his code.

Leave a comment on “WasDogKicked?”

Log In or post as a guest

Replying to comment #:

« Return to Article