• ec (unregistered)

    Actually, The REAL WTF is why this script even exists and furthermore WHY did the author even show it to the newbie?

  • Will (unregistered) in reply to PSWorx
    PSWorx:
    Oh come on, the WTF is clearly with the author here. Did that guy never hear of reverse psychology?

    What about the fact that it clearly states what the script does at the exact same time it tells you not to run it? Who runs a script to "see what it does" when there is a line of plain English describing exactly what it does?

  • (cs) in reply to Jeff
    Jeff:
    Reverse psychology in a large organization? Are you nuts? That's the dumbest idea I've ever heard.

    This story almost seems too ridiculous to be true.

    Sad to say, the story is 100% true.

  • (cs) in reply to ec
    ec:
    Actually, The REAL WTF is why this script even exists and furthermore WHY did the author even show it to the newbie?
    I was leaving the department and the boss wanted the new hire to know the system inside out so he could support/enhance it. I had moved the script into a docs directory long before I handed the system over. There was a read-me at the top of the system tree, and also in the bin directory explaining the purpose of each and every file in the system. While the line printed at the top of the script was terse, the only person who had access to that script was the admin of the system (the new guy), I had WALKED HIM THROUGH IT and explained it to him (top to bottom) in an attempt to show him the layout of the DB. His response after repeatedly running it was that he just wanted to see what the empty database looked like. He admitted that he read all the way through the scripts, and saw all the drop/create table commands, and that there was nothing there to save/restore the destroyed data; it just never occurred to him that dropping all the tables would result in data loss. He admitted this in front of our boss, which is why she dumped him off on an unsuspecting manager in another department. Interesting aside, the other manager eventually found out that she knew of his ineptness prior to dumping him off on the other manager, and proceeded to spend several months trying to get my old boss fired (he failed).
  • ' -- drop CommunityServer; GO; -- (unregistered)

    The story sounds eerily similar to something that happened to me recently, when I was being trained for this new job.

    Some guy shows me this script, with big block letters "DO NOT RUN THIS SCRIPT EVER!!!", and long story short, I accidently deleted the dev DB six or seven times. After they moved me to another department, I deleted the production DB 8 or 11 times. What can I say, I have butter fingers.

    Really, the similarities are striking.

  • James (unregistered) in reply to jnareb
    Nevertheless instead of using it in practice, one should use some ready issue management tool (perhaps there is even a free one in ColdFusion).

    Lighthouse Pro and Skweegee are two open source, free CF-based issue trackers that come to mind.

  • Cheong (unregistered)

    Actually, if you have concern in reverse psychology, the script should be in 2 parts.

    The first part renames the tables to "*_old" if no *_old is found, then recreates the tables.

    The second part checks for tables with names ended in _old. If it's found, rename the current tables that not ended with *_old to *_new, then change the .old tables to names without _old version.

    With these two parts and a bit comments suggesting the second script to undo the change, the newbie may fulfill his desire to test out the script and then fix it himself.

  • anders (unregistered) in reply to snoofle
    snoofle:
    I folks, I'm the submitter of this one...

    As I said in the post, it was only intended to be a teach-myself-how-to-do-something-non-trivial-in-CF system, intended to be thrown away.

    The real WTF here is that your teach-yourself-cf project was made into a real world project - sadly, this happens too often to be funny.

  • Anon (unregistered)

    Even IF I believed the script actually did delete then recreate the whole database I would not run. Neither would any sane/competent person given the scripts warning.

    I mean how the fuck else do you interpret a script that goes to great lengths to not be runnable and deletes the database (it may recreate it but it is gone for some period of time) as anything but potentially very dangerous?

    The script implies it's dangerous, I would want to know why. Even if it didn't imply such thigns I would want to know about consequences before running something that sounds dangerous. Deleting a database sounds dangerous, period. You lose uptime, you may lose data, you may corrupt the whole thing and who knows what else depending on the design.

    Someone who thinks otherwise either can't understand the consequences, doesn't understand the consequences or doesn't care about the consequences. So he's either an idiot, purposefully ignorant or a sociopath. None of those are things you want in a worker of any type. After all even a janitor can shut down a data center by pressing the emergency power switch.

  • rprebel (unregistered)

    Seriously, just make the message say 'Run this and you will be fired...today.' It's all about not saying you can't do something, at least, not directly.

  • G (unregistered) in reply to morry
    morry:
    I've always thought it's better to put these things into the positive, i.e. don't use "don't". For example:

    RUN THIS SCRIPT WHEN YOU WANT TO BE FIRED

    EXECUTE THIS PROGRAM WHEN LIFE NO LONGER HAS MEANING FOR YOU

    IF YOU LIKE EVERYONE HATING YOU, THEN START THIS JOB

    MAKING TOO MUCH MONEY? DO THIS TO REDUCE YOUR PAYCHECK TO 0!

    GET ESCORTED OUT BY MERELY PUSHING THIS SHINY RED BUTTON

    So true. I so hate to be told what NOT to do.

  • raton-laveur (unregistered) in reply to morry
    morry:
    GET ESCORTED OUT BY MERELY PUSHING THIS SHINY RED BUTTON

    THE SHINY, CANDYLIKE BUTTON

    CAN HE HOLD OUT FOLKS ? WILL HE HOLD OUT ?

    (Ren & Stimpy FTW !)

  • sarge (unregistered)

    "It is impossible to make anything foolproof, because fools are so ingenious."

  • JimM (unregistered) in reply to James
    James:
    Nevertheless instead of using it in practice, one should use some ready issue management tool (perhaps there is even a free one in ColdFusion).

    Lighthouse Pro and Skweegee are two open source, free CF-based issue trackers that come to mind.

    Thus completely bypassing the point that this was a quick hash-up to familiarise the author with a new programming language. I think this must be a fairly common thing to use as a familiarisation project, because I did one in Access / VBA years ago that (afaik) is still in use now...

    The real WTF is that management didn't have it transferred to the live server when they started using it as the live tracking system - they left it on the dev server which is almost guaranteed to have laxer security than the live server.

    CAPTCHA: esse(v); to be. What is CAPTCHA trying to tell us? That it wants to be? It is gaining sentience? See, Latin is dangerous...

  • JimM (unregistered) in reply to anders
    anders:
    snoofle:
    I folks, I'm the submitter of this one...

    As I said in the post, it was only intended to be a teach-myself-how-to-do-something-non-trivial-in-CF system, intended to be thrown away.

    The real WTF here is that your teach-yourself-cf project was made into a real world project - sadly, this happens too often to be funny.

    I think it happens because home-rolled systems will inevitably fit the procedures a department has in place, while off the shelf ones may require departments to change their procedures to fit the system's ways of doing things. So even if the home-rolled system is a half-assed teach-yourself project it takes less time and effort to introduce. And of course, if it's develop in house by staff already on the books then it's probably going to be cheaper, too!

  • Code_Monkey (unregistered) in reply to morry
    morry:
    I've always thought it's better to put these things into the positive, i.e. don't use "don't". For example:

    RUN THIS SCRIPT WHEN YOU WANT TO BE FIRED

    EXECUTE THIS PROGRAM WHEN LIFE NO LONGER HAS MEANING FOR YOU

    IF YOU LIKE EVERYONE HATING YOU, THEN START THIS JOB

    MAKING TOO MUCH MONEY? DO THIS TO REDUCE YOUR PAYCHECK TO 0!

    GET ESCORTED OUT BY MERELY PUSHING THIS SHINY RED BUTTON

    You, sir, are WIN! :D

    Then again, some people discard reading anything that is fully written in caps...

  • jpm (unregistered) in reply to John
    John:
    The real WTF is that someone would actually make their own issue management tool.
    You're making the mistake of applying some common sense to this situation. I guess it must have been the poster's predecessor who wrote the spreadsheet application that ran the previous 'bug tracking system'.
  • FIA (unregistered) in reply to N
    N:
    I'm always amused when people explain the ethernet and routing using cars. Imagine an intersection randomly picking cars and smashing them to react to traffic jams.

    Heh, everyone knows you explain routing using ducks, not cars.

  • Sherlock (unregistered) in reply to Anonymous
    Anonymous:
    Wow, who pissed in your wheaties?
    Noone, I'm like that everyday, especially when someone like you pisses me off.
    You should try it some time, instead of just sounding angry and embittered.
    Yes, because the most important part is to sound intelligent, right?
    Nah, I don't think like that. If I did, I'd still be trying to talk to you like you were a reasonable human being. <flush>
    Not sure if you noticed, Sherlock, but you're doing exactly that. Oh, and one more thing - you can put the condescending tone up your ass, it doesn't work, and your irony is weak. (but what am I supposed to expect from a person who said that running a script destroying an important database is "rational" and supported it with some Alice-in-Wonderland logic?)

    slippery slope fallacy ftw...

  • ChessKnught (unregistered) in reply to morry

    LMAO... well put.

  • Mace (unregistered)

    Why all of the quibbling about the language of the warning? I think it's pretty obvious to anyone with a clue that you shouldn't mess around with a production database if you don't know exactly what you're doing. In case that wasn't obvious enough, there's more then enough warnings and barriers to give someone the message that this is something you really want to examine carefully before you run.

  • MrEs (unregistered) in reply to morry

    :lol" nice! Will keep those warning messages in mind.. ;)

    morry:
    I've always thought it's better to put these things into the positive, i.e. don't use "don't". For example:

    RUN THIS SCRIPT WHEN YOU WANT TO BE FIRED

    EXECUTE THIS PROGRAM WHEN LIFE NO LONGER HAS MEANING FOR YOU

    IF YOU LIKE EVERYONE HATING YOU, THEN START THIS JOB

    MAKING TOO MUCH MONEY? DO THIS TO REDUCE YOUR PAYCHECK TO 0!

    GET ESCORTED OUT BY MERELY PUSHING THIS SHINY RED BUTTON

  • Shill (unregistered) in reply to Timwi
    Timwi:
    I can only repeat what some people have already said.

    Thanks for letting me know, I saved a bunch of time not reading the rest of your comment.

  • anon (unregistered)

    So if the idiot coder had actually put a useful comment there like: "This script drops and recreates the database. Only use when deploying the system and then never again" instead of the silly "Never run, ever" nobody would get hurt. If something is to never be run, delete it.

  • ququru (unregistered)

    Have you broke his arms?

  • Xalphox (unregistered) in reply to morry
    morry:
    I've always thought it's better to put these things into the positive, i.e. don't use "don't". For example:

    RUN THIS SCRIPT WHEN YOU WANT TO BE FIRED

    EXECUTE THIS PROGRAM WHEN LIFE NO LONGER HAS MEANING FOR YOU

    IF YOU LIKE EVERYONE HATING YOU, THEN START THIS JOB

    MAKING TOO MUCH MONEY? DO THIS TO REDUCE YOUR PAYCHECK TO 0!

    GET ESCORTED OUT BY MERELY PUSHING THIS SHINY RED BUTTON

    Ahahahahahaha.

  • Swap (unregistered) in reply to morry

    Maybe the author should have commented everything below the exit 1 using : <<HERE HERE

    Or maybe the company should not have hired such a dumb newbie.

  • Arne (unregistered) in reply to PSWorx

    If you are the kind of guy who really can't restrain yourself when someone says "DON'T DO THIS" and even gives you a perfectly good reason why, then you probably shouldn't have such a job. Or any involving responsibility, for that matter.

  • Nigel (unregistered)

    There is a slight problem with the comment. "Destroys then recreates" suggests to a (capital-L) Luser that the script will put all the toothpaste back into the tube before it finishes. Which is why he thought running it again and again might make things better.

  • Jo (unregistered) in reply to morry

    Or even better...don't keep a script you should never run in a place where it can easily be run....?? Not the newbie's fault IMO.

  • AndyP (unregistered) in reply to morry

    I've always deleted any and all dangerous code that could get anywhere a Production System, and if I needed documentation of it, then I'd .. ... .document it - but then I'm probably odd.

  • Matt Esse (unregistered)

    Children at the age of 2 have only a very basic understanding of language and cannot understand negative phrases ie "Don't, Do <this>"; as a father of 3 children under 6years old I have learnt the hard way with some things; for example with my youngest son he was on the top of a climbing frame at the park, I was standing to steps away chatting to another dad and it occured to both Dads at the same time that both of our kids were about to 'have an accident', the father next to me called out "Don't Fall!" to his son, who promptly did the positive of what his father had said and fell. I called out "Hold On!" and he did... My point is you need to phrase all of your directions in the positive when dealing with this 2 year old.....

  • (cs)

    The source code of the script above actually looks like it's filling the DB back in.

    At the bottom it's starting an "insert into table values (" line. Looks like it's putting some data into the DB, which can be construed as "putting the data from before back into the DB" by someone only taking a quick look at the script.

  • Guiro (unregistered)

    Who on earth stores a script that isn't supposted to run and destroys all production data.

    I don't care what you do with a script like that. Make it read-only, 4096 bit encrypt it and throw away the key but it's still asking for trouble.

  • Mikemc (unregistered)

    If the script is not supposed to be ran then why the fuck is it even in there!? The idiot isn't the guy who ran it, it's the one who added the forbidden code to begin with :/

  • Dave (unregistered) in reply to PSWorx

    MUST ... PRESS ... BIG ... RED ... SHINY ... BUTTON!

  • mk (unregistered)

    Sorry, but this is your fault ... that comment should have said what the script does, when it should be used, and why it should never used otherwise.

Leave a comment on “Do not run this script, ever!”

Log In or post as a guest

Replying to comment #:

« Return to Article