• toon (unregistered)

    Snoofle, it took me a while to figure out you meant "3 billion or more". Maybe you can write out the word "billion" instead of "3+B"? Otherwise, good to see you sharing those sidebar gems of yours with the rest of the crowd! (captcha: similis... eeeeew)

    Ed: Fixed.

  • Warren (unregistered)

    I bet after dealing with all that snoofle needs a sleep.

  • (cs)

    Sleep() is the greatest invention in programming, you can use it to slow down programs and also speed them up.

  • Justsomedudette (unregistered) in reply to toon
    toon:
    Snoofle, it took me a while to figure out you meant "3 billion or more". Maybe you can write out the word "billion" instead of "3+B"? Otherwise, good to see you sharing those sidebar gems of yours with the rest of the crowd! (captcha: similis... eeeeew)
    Thanks I had no idea what the heck 3+B meant.
  • (cs) in reply to Justsomedudette
    Justsomedudette:
    Thanks I had no idea what the heck 3+B meant.
    3+B=E. In hex (or any base of size at least 15).
  • (cs)

    I'm sleepy now

  • Honnza (unregistered) in reply to Justsomedudette
    Justsomedudette:
    toon:
    Snoofle, it took me a while to figure out you meant "3 billion or more". Maybe you can write out the word "billion" instead of "3+B"? Otherwise, good to see you sharing those sidebar gems of yours with the rest of the crowd! (captcha: similis... eeeeew)
    Thanks I had no idea what the heck 3+B meant.
    On the other hand, 3+0xB would be perfectly unambiguous and clear
  • (cs)

    The fact that you used "MM" to designate "million" suggests finance industry, where many gems like these come from. Thank you Wall Street for the endless supply of daily WTFs.

  • faoileag (unregistered)
    snoofle:
    I've frequently posted about my attempts to speed up our system
    What bothers me about that sentence is the "our system" which sounds so much present tense. Not like "a system at a previous employer", not like "in the olden times, when..." Are you - I shudder thinking about it - still working at that place?
  • (cs) in reply to toon
    toon:
    Snoofle, it took me a while to figure out you meant "3 billion or more". Maybe you can write out the word "billion" instead of "3+B"? Otherwise, good to see you sharing those sidebar gems of yours with the rest of the crowd! (captcha: similis... eeeeew)
    'Sfunny, but I didn't have any problem with this. That may be because I used to work in the finiancial sector in London, so I'm familiar with the quirky suffix notations used by that sector (and in particular with that large American information services provider):

    In some asset types, suffix K for thousand, M for million, B for billion. In other asset types, M for thousand, MM for million, MMM or B for billion, etc.

    So 3+B said to me "three or more billion", which admittedly isn't quite the same thing as "three billion or more" - I'd write that "3B+".

    The best, though, was the day when a large Chinese bank had its IPO, and market information systems around the globe broke. The shares were priced at a per-share level that allowed the markets to trade around 14 billion of them in that one day, a bit more than fits in 32-bit integers...

    And the occasional fumble-fingered traders were a source of fun.

    One trader in Taipei shifted the local stock exchange index by a percent or so with a single basket order - normally very difficult - because she added a couple of extra zeros to the quantities ordered. She lost her job.

    An unfortunate dude in Japan swapped "selling price" and "quantity ordered". The result: he offered to sell 646 000 shares at one yen each, instead of one share at 646 000 yen. This caused some embarrassment to his firm, and some to the exchange, because there were only about 42 000 shares of that company in existence. (This wouldn't have been possible on some markets because they don't accept orders with prices that far away from the correct price. Tokyo wasn't at that time among them.)

  • (cs)

    Management: Let us sleep on that, we'll get back to you...

  • (cs)
    snoofle:
    We don't need more people; we need better people!

    QFT. You, and 90% of the rest of the software industry.

  • (cs)

    Didn't anyone suggest just pressing the turbo buttons on the servers to slow them down? That always worked for those DOS games written in MS BASIC.

  • Andrew (unregistered) in reply to pure
    pure:
    snoofle:
    We don't need more people; we need better people!

    QFT. You, and 100% of the rest of the software industry.

    FTFY.

  • (cs) in reply to faoileag
    faoileag:
    ...Are you - I shudder thinking about it - still working at that place?
    Yup; WTFInc is where all the good stories come from!
  • Spudley (unregistered) in reply to aKatechis
    aKatechis:
    The fact that you used "MM" to designate "million" suggests finance industry, where many gems like these come from. Thank you Wall Street for the endless supply of daily WTFs.

    The best bit of that, of course, is knowing how high paid most finance devs are.

    Grrrr.

  • Shawn H Corey (unregistered)

    To sleep, perchance to dream...

    ...of getting a better job.

  • faoileag (unregistered) in reply to snoofle
    snoofle:
    faoileag:
    ...Are you - I shudder thinking about it - still working at that place?
    Yup; WTFInc is where all the good stories come from!
    Ah, I get it: you work there so that you can get material for The Daily WTF! Wow, that's what I call dedication! Keep up the good work! :-)
  • onitake (unregistered)

    You could have tried telling the DBAs that the "M" in "512MB" was a typo and it should have read "512GB"...

  • Ciaran (unregistered)

    Now the trouble is over, everybody got paid Everybody is happy, they are glad that they came Then you go to the place where you've finally found You can look at yourself, sleep the clock around

    "Sleep the Clock Around" by Belle & Sebastian

  • pif (unregistered) in reply to Steve The Cynic
    Steve The Cynic:
    So 3+B said to me "three or more billion", which admittedly isn't quite the same thing as "three billion or more" - I'd write that "3B+".

    http://dilbert.com/strips/comic/2005-11-18/

    CAPTCHA: dignissim; indeed, this comment is dignissim to be published!

  • (cs) in reply to Yaos
    Yaos:
    Sleep() is the greatest invention in programming, you can use it to slow down programs and also speed them up.

    The first thing that leaped into my fertile mind when I read this was: Negative sleep intervals!

    begin
       much program processing
       sleep(-45000);
       clean up
    end
    

    Presto: A program that ends before it begins! What a concept!

  • (cs)

    I remember reading all of these on the sidebar. It is great to see all the sleep incidents compiled into a single article. Sad thing is this is they have done worse.

  • Vilx- (unregistered)

    This is just sad.

  • Anon (unregistered) in reply to pif
    pif:
    Steve The Cynic:
    So 3+B said to me "three or more billion", which admittedly isn't quite the same thing as "three billion or more" - I'd write that "3B+".

    http://www.dilbert.com/fast/2005-11-18/

    CAPTCHA: dignissim; indeed, this comment is dignissim to be published!

    FTFY. TRWTF is not using the "fast" version of Dilbert.

  • (cs)

    It's the bitchy backseat driver antipattern!

      Speed up, or we'll never get there.
      Slow down! are you trying to kill us?
      Speed up!
      Slow down!
    
  • (cs)

    Editorial: "Sleep to cool the cpu's" should be "Sleep to cool the CPUs".

  • Bean Counter (unregistered)
    We don't need more people; we need better people!
    Oh, dear, that sounds like it might cost money.

    ears -> close(); brain -> off();

  • Oscar (unregistered)

    Obviously the root problem is that Snoofle keeps speeding things up faster than the rest of the company can absorb his goodness and brilliance. Therefore his manager should instruct him to sleep() 60% of every day.

  • (cs)

    No, you cats are looking at this all wrong...

    Your code is GREENER! Let the MBAs know that you've saved thousands of dollars in operating costs by reducing electricity and cooling costs while the sales guys start serving up the new marketing materials on unbleached, 100% recycled paper.

  • (cs) in reply to dkf
    dkf:
    Justsomedudette:
    Thanks I had no idea what the heck 3+B meant.
    3+B=E. In hex (or any base of size at least 15).

    Hmmm: " sqrt(-1)" " less than three" "three plus B"

    Anyway, "3+B" is NewSpeak for "very very very bad"

  • (cs) in reply to Zylon
    pure:
    QFT. You, and 90% of the rest of the software industry.

    Indeed. That's one of the reasons why I left my last job. PHB was demanding a project with no specs, and was wondering why it was taking so long. Hired a contractor that was so clueless that he actually impeded progress.

    Zylon:
    Editorial: "Sleep to cool the cpu's" should be "Sleep to cool the CPUs".

    Actually, it should be "Sleep to cool the processors", I assume.

  • (cs)

    I have to admit I'm rather enjoying snoofle tuesday.

  • Jeff (unregistered)

    You just made my head hurt.

  • jarfil (unregistered)

    Platters? Like "disk" platters? Come on, even cheap interns know how to solve that, just buy $3MM of SSDs!

    captcha: consequat, conesquat? yeah, I'm going with the cone thing.

  • (cs) in reply to Oscar
    Oscar:
    Obviously the root problem is that Snoofle keeps speeding things up faster than the rest of the company can absorb his goodness and brilliance. Therefore his manager should instruct him to sleep() 60% of every day.
    Where do you think I get the time to write these articles?
  • jay (unregistered)

    They use sleep's to align with asynchronous processes? Wow. So you just put in an arbitrary sleep and hope that the other process is done by then? This sounds like mysterious bugs just waiting to happen. The program could work today and fail tomorrow.

  • (cs) in reply to jarfil
    jarfil:
    Platters? Like "disk" platters? Come on, even cheap interns know how to solve that, just buy $3MM of SSDs!
    It's not that simple. These are the high availability variety of disk. You know, the kind that could get hit with a shotgun blast and not miss a beat. We spend about $15,000 per TB for storage. SSDs sound like a good idea, but I don't know that there are any that are of the HA variety.
  • finance developer (unregistered) in reply to Spudley
    Spudley:
    aKatechis:
    The fact that you used "MM" to designate "million" suggests finance industry, where many gems like these come from. Thank you Wall Street for the endless supply of daily WTFs.

    The best bit of that, of course, is knowing how high paid most finance devs are.

    Grrrr.

    Easy - move to where the finance jobs are and apply.

    If (like most people) you can't afford to move all the way into a city then prepare to travel 100 miles a day on expensive and overcrowded trains.

  • Kim (unregistered)

    I've been a long time lurker of Side Bar WTF, and the stories from SnoofleCorp are so unlikely to be created by a fertile mind that they must be true. So glad to see you sharing the front page, but snoofle should consider be a consultant for Dilbert...

  • letatio (unregistered)
    Since I was not allowed to rewrite the query part of the application, instead of letting me fix the queries, they made me add sleeps
    Is there someone who tested what happens when you just refuse to do something like that and stick to something like I refuse to put in these very questionable workarounds for severe bugs. It was pure luck that it worked until now and with the sleep workaround it will be pure luck whether it works in the future. I want to fix the bug..

    Do they fire you for that just like that? (And is this really bad?)

  • n_slash_a (unregistered) in reply to Bean Counter
    Bean Counter:
    We don't need more people; we need better people!
    Oh, dear, that sounds like it might cost money.

    ears -> close(); brain -> off();

    +1

  • John Dirt (unregistered)

    HA-HA. I so glad that you are having problems with your application! HA-HA...

  • (cs)

    I once wrote a webapp that amongst other things, had to redeem vouchers.

    Marketing looked at the result and told me that the code was too quick. I had to insert a sleep call in the processing code because, they reasoned that people wouldn't believe it worked if they got an instant response.

    As bonkers as it sounds, they were probably right: a couple of seconds of extra waiting did make it look much more serious and official.

  • urbalt (unregistered) in reply to biziclop
    biziclop:
    I once wrote a webapp that amongst other things, had to redeem vouchers.

    Marketing looked at the result and told me that the code was too quick. I had to insert a sleep call in the processing code because, they reasoned that people wouldn't believe it worked if they got an instant response.

    As bonkers as it sounds, they were probably right: a couple of seconds of extra waiting did make it look much more serious and official.

    I guess I barely dodged a snoofle when I "optimized" a former colleague's poorly-written voucher-redemption code that pulled and processed hundreds of times as many records from the database than it had to, resulting in delays of over a second in the production app. Marketing didn't ask me to change the behavior back to original. On the contrary--the inefficiency was orders of magnitude greater in test environments, and they were very pleased that they no longer had to wait up to 15 seconds per click to test voucher code configurations. (Users--marketing no less--testing their changes: TRWTF, I know.)

  • Jack (unregistered) in reply to biziclop
    biziclop:
    I once wrote a webapp that amongst other things, had to redeem vouchers.

    Marketing looked at the result and told me that the code was too quick. I had to insert a sleep call in the processing code because, they reasoned that people wouldn't believe it worked if they got an instant response.

    As bonkers as it sounds, they were probably right: a couple of seconds of extra waiting did make it look much more serious and official.

    How does that work out when Marketing runs a big promo without telling anyone, and the servers get slammed with traffic? Could you at least put in some logic that says "if the user hasn't already waited three minutes, sleep 2 seconds"?

  • Tom (unregistered) in reply to urbalt
    urbalt:
    (Users--marketing no less--testing their changes: TRWTF, I know.)
    Excuse me, but which alternate universe were you visiting with the aid of banned substances again?
  • Kjella (unregistered)

    "We don't need more people, we need better people" is so true. It's like grabbing candidates from "Worst cooks in America" thinking ten of them can do better than one professional chef. Also a related demotivator I love:

    http://demotivators.despair.com/demotivational/incompetencedemotivator.jpg

  • (cs) in reply to Jack
    Jack:
    biziclop:
    I once wrote a webapp that amongst other things, had to redeem vouchers.

    Marketing looked at the result and told me that the code was too quick. I had to insert a sleep call in the processing code because, they reasoned that people wouldn't believe it worked if they got an instant response.

    As bonkers as it sounds, they were probably right: a couple of seconds of extra waiting did make it look much more serious and official.

    How does that work out when Marketing runs a big promo without telling anyone, and the servers get slammed with traffic? Could you at least put in some logic that says "if the user hasn't already waited three minutes, sleep 2 seconds"?

    Good question but no, we weren't that subtle. There weren't going to be enough active vouchers for that to be a problem any anyway, if you waited 3 minutes already, you won't even notice the extra 2 seconds :)

  • jarfil (unregistered) in reply to snoofle
    snoofle:
    It's not that simple. These are the high availability variety of disk. You know, the kind that could get hit with a shotgun blast and not miss a beat. We spend about $15,000 per TB for storage. SSDs sound like a good idea, but I don't know that there are any that are of the HA variety.
    HA is a myth, there are only three kinds of drives: bad, worse, and trash. MTBF mostly states how many drives did the manufacturer trow at accelerated aging tests, doesn't change the fact that "bad" and "premium HA bad" drives get similar failure rates.

    As for SSDs, currently there are SLC, MLC and TLC drives (see: bad, worse, trash). Get yourself a bunch of SLC drives, and you'll see better performance and reliability than with any of those platter clunkers. As a bonus you get non-desctructive failure modes like just going into read-only (aka: RAID friendly) instead of dying entirely.

Leave a comment on “Too Much Sleep”

Log In or post as a guest

Replying to comment #399670:

« Return to Article