• (disco)

    Steph seems like a true coffeeblood programmer.

  • (disco)

    Let the OS's task scheduler (Windows Task Scheduler / crontab) do the job instead and then everything is up to the system admins.

  • (disco)

    Great. The link in the comment isn't working. A real "Clbuttical Mistake"

  • (disco)
    private static int fifth_post_in_comments = opening_post + 6;
    

    Try it!: http://what.thedailywtf.com/t/scheduling-buttumptions/37184/7


    Filed under: Discomath

  • (disco)

    I hope by "encourage" he means "Threaten to break his legs". However the real WTF is, as always, idiot management that don't know anything about "those computer things" and let themselves get hoodwinked and conned by big talking imbeciles.

  • (disco)

    fifth_hour_of_day was accidentally, ridiculously defined as 4

    Well, 4:00 to 4:59:59.999999 is technically the fifth hour of the day. It's just impossible for future maintainers because no one thinks in terms of hour of the day.

  • (disco) in reply to DocMonster
    DocMonster:
    However the real WTF is, as always, idiot management that don't know anything about "those computer things" and let themselves get hoodwinked and conned by big talking imbeciles.

    QFT

  • (disco) in reply to lcrawford
    lcrawford:
    Well, 4:00 to 4:59:59.999999 is technically the fifth hour of the day. It's just impossible for future maintainers because no one thinks in terms of hour of the day.
    And the people who *do* think in terms of hour of the day use 0-based indices.
  • (disco)

    Aha! I've found TRWTF:

    private static int second_of_month = cal.getActualMinimum(Calendar.DAY_OF_MONTH) + 1;
    

    ...but:

    && today.get(Calendar.DAY_OF_MONTH) == second_day_of_month
    

    ... and nobody noticed that the code never compiled, and so the version that got created automatically by the nightly build process is the old version which was completely different?

  • (disco)

    Actually no, TRWTF is a company that does not provide free coffee to its employees.

  • (disco)

    The real WTF is the Morgenlatte

  • (disco) in reply to PlutoPlanet

    I didn't even know that word existed.

  • (disco)
    Travie

    Make the twat fix his own shitty code.

    bored

    Oh, right. In that case I meant to say, make the stuck-up entitled twat fix his own shitty code.

    Seriously, fixing other people's shitty code was one of the reasons I didn't entirely regret my lack of contract renewal at Big Insurance.

  • (disco)

    I also made a scheduler for my work after I was fresh out of school. Even if I had to do it again, I would not stuff it in cron. But we had a bunch of things the user could schedule their job on (not just time or day, but completion of other things). Even though the user could say, run this when time == 5:00, I'd convert that internally to some inequality with the condition it hadn't been scheduled in the previous iteration. It was a mess and I wanted to rewrite the thing (batch scheduling could take a long time, more than minutes), but I was moved off the team. The project had frozen in time for the past 5 odd years or so. I wish it would just die, so I don't have to be reminded of it.

  • (disco) in reply to Nprz
    lcrawford:
    Well, 4:00 to 4:59:59.999999 is technically the fifth hour of the day. It's just impossible for future maintainers because no one thinks in terms of hour of the day.

    I think you're confusing cardinal hours with ordinal hours, or something. :stuck_out_tongue_winking_eye:

    Nprz:
    The project had frozen in time for the past 5 odd years or so. I wish it would just die, so I don't have to be reminded of it.

    I know. There's nothing worse than looking at code I wrote two years ago; its TRWTF for sure. And it's rolling...in 2017 I'll be looking the same way at code I wrote this year.

  • (disco)

    TRWTF is obviously : Starbucks? Come on, there's no real coffee at Starbucks.

  • (disco) in reply to PieterB

    There's no real "coke" in Coke™ either - but if it tastes good for me, why should I care?

  • (disco) in reply to Gaska

    This is why I order my coke directly from West Virginia Coal and Railroad Supply.

  • (disco) in reply to Nprz

    Still, getting back to the story, Java has a few things in it that would work better for a scheduler. Executors were added a decade ago, for example.

  • (disco) in reply to powerlord

    Who Belgium ed up the font in JavaDoc8?

  • (disco) in reply to JazzyJosh

    I hope that's a Rhetoracle question.

  • (disco)

    I just don't understand why people have to ruin perfectly good things. Javadoc7 looks great. 8 is a :hankey:

  • (disco) in reply to powerlord
    powerlord:
    I hope that's a Rhetoracle question.

    Oracle - If it ain't broken now, we're sure we can do something about that.

  • (disco)

    The Whiz Kid was a Special Snowflake; he preferred to reinvent the wheel rather than implement stable but "boring" code.

    Snowflakes that special deserve to preserved forever by shoving them in freezers at cryogenic temperatures.

  • (disco) in reply to DocMonster
    DocMonster:
    However the real WTF is, as always, idiot management that don't know anything about "those computer things" and let themselves get hoodwinked and conned by big talking imbeciles.

    I knew it was time to think about life after company X when the new hire turned up on day 1 and told me that the work we were doing on reporting wasn't needed, a friend of his had shown him a Microsoft product that could be shown some data and in a couple of minutes would produce the business information table you needed. He was going to take a look at our requirements and get his friend to knock us up a solution in a morning.

    I was still there a year later when, after he ran his company BMW into the ground, it turned out that his prototype web application consisted of this: data was captured into a form which he entered manually into a spreadsheet, saved the result as a pdf and mailed to the customer. It didn't exactly scale.

    Neither HR nor the CEO would ever admit to me that their recruitment had been in any way flawed.

  • (disco)

    DocMonster 2015-04-02 11:36 I hope by "encourage" he means "Threaten to break his legs". However the real WTF is, as always, idiot management that don't know anything about "those computer things" and let themselves get hoodwinked and conned by big talking imbeciles.

    There really needs to be an inexpensive service that travels from company to company, vets the "big talking techies," and thrashes the imposters in the parking lot. Even the "Degreed" ones are fakes, sometimes.

  • (disco) in reply to Wesley_Long
    Wesley_Long:
    and thrashes the imposters in the parking lot.

    Making them pay for the damage they've caused would do, mostly. They shouldn't work on the techies only, though.

    DocMonster:
    hoodwinked and conned by big talking imbeciles.

    The problem is they really believe what they say. They're not even intelligent enough to lie.

  • (disco) in reply to Nprz
    Nprz:
    Even if I had to do it again, I would not stuff it in cron.But we had a bunch of things the user could schedule their job on (not just time or day, but completion of other things).

    Sounds like a natural fit for systemd.

  • (disco) in reply to Wesley_Long
    Wesley_Long:
    thrashes the imposters in the parking lot.

    You need some traders in stocks.

    http://www.chameleon-ents.co.uk/wp-content/gallery/partygames_10woodenstocks/stocks001a.jpg

  • (disco) in reply to PWolff
    PWolff:
    The problem is they really believe what they say. They're not even intelligent enough to lie.

    I believe they call this the Dunning Kruger effect. The stupider someone is, the more talented they believe themselves to be (conversely, the smarter someone is, the less talented they tend to consider themselves)

  • (disco) in reply to Masaaki_Hosoi
    Masaaki_Hosoi:
    I believe they call this the Dunning Kruger effect. The stupider someone is, the more talented they believe themselves to be (conversely, the smarter someone is, the less talented they tend to consider themselves)

    It isn't just about stupidity; it is about not knowing enough about a subject to be competent, but having a mindset of over self confidence, entitlement or psychopathy that leads you to think that you know more than those people who seem to find it difficult - because they understand the complexities.

    Human beings as a species seem very easily taken in by the self confident and psychopaths. Professions where technical ability is truly important - civil engineering, aerospace, medicine and law - have extensive regulations intended to prevent this from happening by requiring not only education and training but also a period of peer evaluation. The problem with software is that it hasn't quite reached this stage yet. I'm sure people can come up with arguments why a proper training and regulatory framework should not be needed for anyone responsible for an internet-facing or business system, but there is an obvious analogical argument in favor - for a modern business having a web service go down can be as serious as a building collapse or losing a major lawsuit.

    Now a confession. I too have implemented a scheduling system for database replication that had a bug something like the one in the article. I'm not proud of it. The customer, having decided to host the application in their expensive warehouse, then decided that no, the actual application was to run in the Azure cloud and then they wanted the database replicated. But they wanted the database replicated faster than a Microsoft scheduled backup and download could cope with, and I had to devise a replication system at very short notice. At which point, with a few days to go before deployment, the company fired our test engineer and I had a sackload of work on. So the customer was going to be our tester, but management wasn't going to tell them that. It was unprofessional, and at that point I would have been glad of a legal regulatory framework that would have allowed me to say to the management "I'm sorry, but we can't legally deploy this code until you have it tested by a certified test engineer."

  • (disco) in reply to Wesley_Long
    Wesley_Long:
    There really needs to be an inexpensive service that travels from company to company, vets the "big talking techies," and thrashes the imposters in the parking lot. Even the "Degreed" ones are fakes, sometimes.

    It would be better if they thrashed the people in HR and management who did the recruitment. The big talking techies would be punished by being required to debug student projects for five years, preferably in languages like Erlang, Haskell and B*****k.

  • (disco) in reply to Wesley_Long
    Wesley_Long:
    "Degreed"

    That should be censored.

  • (disco) in reply to redwizard
    redwizard:
    "Degreed"

    That should be censored.

    Just like many, many (other) enterprisey buzzwords.
    dkf:
    You need some traders in stocks.

    Would make a good surrounding for a paintball game, too.

    Btw, does anyone know the reason why the comment page for Phenomenesia isn't open?

  • (disco) in reply to PWolff
    PWolff:
    Btw, does anyone know the reason why the comment page for Phenomenesia isn't open?

    This one?

  • (disco) in reply to tar

    TDWTF is TRWTF. This time.

  • (disco) in reply to tar
    tar:
    Btw, does anyone know the reason why the comment page for Phenomenesia isn't open?
    This one?
    Thanks.

    I correct my question:

    Can anyone explain why I see "View all 0 comments" at the bottom of the page, and when I click that link, all I see a page with 0 comments and nothing where to put a comment?

  • (disco) in reply to PWolff
    PWolff:
    Can anyone explain why I see "View all 0 comments" at the bottom of the page, and when I click that link, all I see a page with 0 comments and nothing where to put a comment?

    I refer you to my post above yours.

    dkf:
    TDWTF is TRWTF.

    In other words, there's a bug in the code that runs the main site and which handles the comments. I've no idea what that bug is, but since it's working for other articles and there's nothing special about the article title — this time — I'm going to assume that the blame is not on the Discourse side.

    dkf:
    This time.
  • (disco) in reply to dkf

    TDWTF is most often TRWTF IME, IMNSHO, HTH, HAND, ETC WTF BBQ LOL

Leave a comment on “Scheduling Buttumptions”

Log In or post as a guest

Replying to comment #:

« Return to Article