- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
The featuritis of certain unix file systems offers another layer of protection:
Admin
You fool! Why on earth didn't you use a frame? Don't you realise that secure multi-mediation is the future of all webbing?
Admin
No I'd OPEN the script file, READ the script file and promptly have no need to run it. See unlike the moron noob I know that there are sometimes better ways to understand a program you have source to than running it (especially when it tells you to not run it).
Admin
"DO NOT RUN THIS SCRIPT EVER"
Then why the hell is it in included in the file at all?
That's the real WTF...
Admin
Like someone else said the guy was probably intelligent but simply insane (possibly in a clinical sense even).
Maybe interviews should include a nice red button in the room with the word's don't press on it. the interviewer would of course leave at one point and the button would not do anything except invisibly record presses.
Admin
It's been years, but I laughed.
Admin
Admin
Our hero studied the document for a few moments, and realizing the opportunity that was available to him, he finally reached over and lifted the coffee cup.
At which point, of course, the coffee spilled out through the hole in the cup, all over the rival bid and the interviewer's desk.
Admin
Much simpler:
I don't think that's really English, let alone accurate, but then my Modern Greek isn't what it didn't used to be. We're down to ten characters, and only two of them accented... Feeling better yet? Don't worry, you can always use the Symbol font to enter captchas, although the last time I looked at a Greek typography site, they were fairly scathing.
(Just thought that quoting from other threads might start a trend. If it stops this interminable argument about whether "ize" or "ise" is correct, then it's worth a go. And, in the context of Greek, I still despise the faux-elitist analyze.)
Oddly enough, I overheard a (presumably) Public School mathematician colleague today, talking about how he'd found Greek difficult to learn in school because of the "accent" representing an 'h.' Being (minor) Public School, he didn't respond to my comment that it's a rough breathing, not an accent. (Even odder, in its own way, is the mandatory smooth breathing for the absence of an 'h' where the word starts with a vowel. Mandatory, that is, unless the text is capitalised, which is the case with practically any extant Ancient Greek not written on parchment. This stuff is usually white-space free, too, which makes Perl regexps a bit of a pain. And then people complain about English. I suspect that a rough/smooth breathing is more of a diacritical than an accent, but I can't be bothered to walk downstairs and look it up in Vox Graeca.) Being me, I didn't point out that he was an ignorant and ungracious twerp.
Where was I?
Oh yes.
If you can ad infinitum -- maybe also subtrac, multipl and divid -- you can learn to live with eleven characters in mildly obscure Latin that are designed to convert web-bots to Catholicism, or die.
(Curiously, mine would have been "bene." (Only four letters!) Go Greek, Alex. Make the buggers sign in.
Admin
And if you're going to babble about fstat-related differences, well then, I'm going to wander into a corner and sulk.
Seriously. I expect boo-boos, and potentially even catastrophes, from an intern or a new hire. I've been there. You've probably been there. That's how we learn.
What I don't expect is unintelligible gibberish, accompanied by the excuse that "I just wanted to see how it works."
In today's world, this may no longer be Grounds For Dismissal. It is, however, Grounds For Being Put In Charge Of Counting Paperclips (Assistant). By the gonads. Using a three-phase circuit.
Admin
do runscript until me.isFired
Admin
I feel for you, I really do. In my team, we have a simple rule; "If you don't know what it does, or what you're doing, don't touch it."
The real WTF, is that the pointy haired boss rushed to put a little RND project into production, oh, and did someone really give the newbie the su password?
Admin
I wonder what the script name was...if it was something along the lines of "drop_and_create_db.ksh" then the WTF is clearly not with the author
Admin
Haha, the broker I work for uses a sluggish Excel 'application' for client portfolios too.
Admin
what a dumbass,if it says in caps "do not run this script ever" i think that's a hint.
Admin
Reminds me of a warning sign in a lab, near the output aperture of a laser:
DO NOT STARE INTO LASER BEAM WITH REMAINING GOOD EYE.
Admin
If the dump failed for any reason, what do you think the n00b will do next?
Admin
Well, Mr. Anon, you are much like me. However, I have some direct, real-world experience with this phenomenon as well. A few years ago, when I was in college (back before two girls one cup), I was in the student lounge slumming it on slashdot. The thread I was reading derailed to talking about trolling people with awful shock-porn.
Well, one guy mentioned goatse guy, tubgirl and lemonparty in this context. The direct reply was (paraphrasing) "Dear God! Those are horrible!" The next reply was, "You moron, it was obvious from context that those are things one should not google."
I was laughing at this point, and relayed the posts to my fellow students. They all thought it was funny, but one guy jumped up and ran to the computer next to me and said, "Lemonparty? What's that?"
I couldn't convince him that he should resist googling. I hid my eyes, and moments later, the guy next to me screamed in horror.
I do not know. I never will know. There are things one does not google.
Likewise, some people will never resist the Big Red Button. There are programs one runs, and programs one reads. The competent user will have techniques for telling the difference before running the program.
Admin
Shiny candy like button.
Admin
Worse yet, a script can be modified? Well, in strict functional programming terms, yes, that's bad. No Side Effects.
I may be missing something; but the whole point of a script is that it can be run by "the ignorant." Otherwise, you wouldn't bother to script it. In this case, I believe there is a clear difference between "the ignorant" and the "plain fucking cretinous."
I'm not necessarily defending the script, per se. As with (the occasionally thoughtful) other commentators, I would have made it two scripts -- one to drop tables (with HUGE warning signs, etc), and one to create tables (ditto, but modified).
Really, it's not that difficult to see the essential core of the WTF.
Usually, it's "WTF was this berk thinking?"
In this case, it's "WTF was this berk expecting to see?"
Admin
I hate you so much !
Admin
I am wondering why this script was not deleted when the system went live?
Admin
(No, really, I do. I fly off the handle at people I would almost certainly like, although I doubt it's commutative.)
I just love that "STRUCTURE as well as DATA."
First of all, the way you're missing the point is far beyond irony. The new hire is obviously a dangerous cretin. Period. That's the (c)WTF(c).
Secondly, the entire point of the script is to "RE-CREATE the empty structure, NOT the data." What, you guys think that a database magics itself out of nothing?
Thirdly, most normal people would assume that DATA is more important than STRUCTURE. Obviously, those of us who are not brain-dead DBAs would regard both as fairly important, but I suppose that DBA newbies might think otherwise.
Fourthly, snoofle managed to wind back to a previous commit. That would be kind of like dumping the data in the toilet^H^H^H^H^H^H^H^H^H^H^Ha file, only maybe better.
Fifthly, Professional? How, exactly, would you define yourself as a professional, as opposed to us non-professional guys out here? Got a BrainBench certificate, or something?
And your point would be?
Admin
Admin
Stuff this Web 2.0 nonsense -- I'm going to make my millions out of Big Red Buttons...
Admin
Admin
Adam and Eve: do not eat the apples! Pandora: do not open the box! Newbie: Do not run this script, ever!
Admin
Admin
Admin
This is entirely the author's fault, for poor documentation.
You quite clearly told the user it would re-create the database after destroying it. You never said that what it would re-create would be completely different from what it was that got destroyed.
You should have written that. Or "erases", or "blanks out". But never "Do not run this script, it does ${SOMETHING COMPLICATED} then un-does it."
Admin
Admin
Admin
That is to say, it requires more than just the ability to understand plain English to realise that the meaning of the sentence in the technical sense is in fact radically different to the meaning of the sentence in plain English. You can criticise n00b for not understanding databases, but not for not understanding plain English.
It means that his attempt to repair the database by re-running the script over and over was, in fact, a thoroughly sane rational decision, wrong only because based on a misinformed understanding of the technical terminology in use.Admin
Admin
That is very clever, I like it.
How would you apply it to the ksh script?
Admin
Yeah, until two people overlap modifications.
Admin
Also very clever. Note taken.
Admin
I am convinced that the newbie would have dropped all the tables even if the script never existed.
Admin
See! I was right - that is all the newbie does - drop tables.
Admin
"Don't touch that! It's the History Eraser Button!"
Admin
I hate this darn computer, I wish that they would sell it. It never does exactly what I want, only what I tell it.
PEBKAC error: Problem Exists Between Keyboard And Chair
Admin
I assert that there is no point in executing this script if you truly believe that it "destroys" the database and then "recreates" the database in its entirety. Why do a deep copy onto yourself? I suspect that the whiny "I just wanted to see what it did" rather reinforces this point. Not, you will note, "I just wanted to completely obliterate the database, with no trace left whatsoever, unless somebody who is marginally saner than I has backed it up and can restore it before anybody else notices, and then recreate the same database in such a way that nobody, including me, can tell the difference. Why? Because I just wanted to see what it did."
Plain English is plain English. As ye reap, so shall ye sow.
Repair the database? Who said anything about that? And how would that work, anyway?
One of my favourite quotes in Computer Science is Jamie ... no, make that Edjgar ... no, make that The Unix-Haters Handbook. Mostly because it's hysterically (and intentionally) funny. But partly because of its wisdom in cases like this. It has a comment on the futility of repeatedly running "wc" which appears to apply here.
Re-running the script over and over (once again, a flight of fancy not mentioned in the post) in an attempt to "repair" the database sounds awfully similar to spending your day running wc over and over again, just to make sure that the file system isn't subject to bit-rot.
Basically, this is what a lobotomised parakeet would do.
If you truly believe that this is "a thoroughly sane rational decision," I suggest that you contact snoofle so that you can hire this guy.
Low fee, much love, and a bridge over the East River for free...
Admin
Ok, this is just so funny. For some time ago me and a couple of friends wrote a terminal application to interface with some lasers for a game. We made a fancy menu and thought if the idea to add an option: "Self destruct". We thought that with a menu-choice so clear about what it would do, no one would use it and no one would ask what it did ... But then again, the only thing they asked us about was: "What does the selfdestruct button do?" No one, I mean no one, asked about what "Start game" did, or "Exit application" ...
Admin
Admin
Actually, you could even just say it deletes everything from the database. Not quite accurate but the end result is the same.
Admin
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.
Admin
Admin
For some reason, people don't seem to realise that Excel (and probably other spreadsheets) can be set to allow concurrent modification.
Admin
Wow, who pissed in your wheaties? I wasn't even talking to you.
You should try it some time, instead of just sounding angry and embittered.
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>
Admin