- 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
Per perlsub,
means , that is, the callee is passed the same parameters that were given to the caller.Admin
Me too. I demand more Hitchcockian WTFs! :)
Admin
The ampersand denotes code as an argument type. Thus the "&Find..." is a named chunk of code, usually called a 'sub' (subroutine) in Perl.
Admin
I was unfortunate enough to have to work with Paradox. I couldn't figure out how to create relationships. I had occasion to run into the author of an old Paradox book who told me the same thing.
Admin
Hmm, I thought such veriable names are a relatively good sign. Now:
That spells trouble!Admin
The & in front of the function call is very Perl4ish (i.e. outdated for at least 10 years).
In modern Perl, you'd say
FindAndFixBrokenDBStuff();
note the parens after the function name.
Admin
Developers who do not realise that in all cases a SEGV indicates a program bug? Brillant!
Well, all cases where the hardware is good...
Admin
That's only because you can't find SHIFT+7 when you're drunk.
Admin
Admin
I've also been Josh before.
Was asked to fix a bug in a particular input screen, and found that the bug was actually traced to a base level library and fixed it....also fixing ~40 bugs that the testers hadn't found yet.
I was promptly chastised by the Lead programmer for 2 weeks for going outside the particular screen code.
I left a month later and the rest of that team was jealous of me.
Admin
Hmm, seems like the question about the perl ampersand got answered in about 6 different ways... makes me scared to learn that language
Admin
Process failure, development failure, or just a bunch of ID-10-Ts with their heads jammed too far up their asses to be able to read fault reports, and too arrogant to listen to a lowly installation tech? You make the call!
While I can appreciate that most field circus reps aren't qualified for their own job, never mind programming and DB (naturally, the same applies in reverse to most developers, but anyway), it seems to me that if an installation tech is frustrated enough with the situation that he went to the trouble to get into the CVS system and dig around making changes, you'd think that you would at least take the time to figure out a) what it is that's got his panties in a bunch to begin with, b) whether ther really is a problem with the existing code (at the very least ask the other installation techs about it ) c) what the hell his attempted changes were supposed to do (face to face if possible), and d) whether the changes he added actually worked better than the existing code or not.
Perhaps the answer is to send the developers out on a few support calls. I doubt it would help, though, since they obviously aren't literate enough to read either a bug report or a book on relational database design...
Admin
seems like the question about the perl ampersand got answered in about 6 different ways... makes me scared to learn that language
That's because the language has gasp evolved a bit in the last couple of decades. Anyways, as has been pointed out more than once, the (current) Perl 5 and up way of calling a function is simply
FunctionName();
The "old" way will still work, though. You have to remember the first principle of Perl: http://en.wikipedia.org/wiki/There_is_more_than_one_way_to_do_it
Admin
You spun the story wrong. The way it sounded, I kept looking for the big idiocy this Josh moron put into source for which he was forever banned from CVS.
What horrendously hilarious "fault" he found in their database.
Now it turns out to be "you don't enforce unique primary keys".
WTF? If I were Josh, I'd be glad to be out of there too.
Admin
I dunno if I agree with that. It's never a good thing to patch a bunch of bug fixes in something labeled "workaround".
Maybe the developer should have fixed the bugs at the source instead of creating an ever expanding bandage for the problems in the system. I would have deleted it too, but only after properly fixing the bugs in the system at their source.
Also, the devs who deleted it were morons as well, obviously.
Admin
Maybe josh was a socially retarded cockface who know one liked, hence no one listened to him, banned him from touching code, etc
Not necessarily the case, but if he was just plain smelly then you can't really blame the devs for not wanting anything to do with the guy
Captcha: onomatopoeia - wtf??
Admin
I kinda had a feeling that Josh was the hiro in this story right from the start. All conversation suggesting the possibility that he stepped out of his bounds shall diminish now and be banned from ever re-occurring in this house! Hail Josh!
Admin
Admin
They probably stored dates in varchar columns, so they could contain all kinds of garbage.
Admin
This is the best WTF ever read, honestly! First you think Josh was an idiot but then you realize that the other developers actually are the idiots.
Admin
Admin
Admin
Admin
Admin
Perl is not a language. It's best described as a thing; sort of like a Mr. Potato Head with one eye shoved into the hat socket, the other into a leg socket, and a limp french fry sticking out of an ear hole.
Admin
Admin
Good. The less Perl developers in the world, the more sane the world will become.
This goes for Python, too. Honestly, syntactic white space? You're having me on. Is column 79 special, too?
Admin
Very interesting article. I invite everyone to visit my Blog magazine about Chile. www.chilemade.com
Admin
I'd add to that background performance monitoring, which can include identifying hot-spots that have developed as the usage/data have evolved over time... and hopefully some knowledge how to fix them; this might be DBA-centric (for instance, shuffling the data between drives if IO is unbalanced), may involve suggesting specific query changes, or may just be "this is too slow; fix it please, Jo Dev".
Of course, this works best if your friendly DBA is also involved in the original design (in a consultancy role) so that they have at least bought into the architecture, and fixed any glaring FUs before it even gets into dev, let alone production.
In general, giving due consideration to PK/FK/identity etc would be part of this!
Admin
Looks like it's time to upgrade the ol' captcha.
Admin
BTW where did all this garbage come from in the first place? Poor interface design + poor database design.
So that was a bunch of people who might know how to program an alarm clock but not more. And because the system is in production for some years (I guess) ther's no help to get that clean some day.
Admin
Obviously, you are a member of the dev team that got Josh to leave - In your world, if you don't understand it, it must be bad - I pity your coworkers, having to put up with an arrogant asshole like you...
Admin
Yeah, the post felt like The Sixth Sense all over again! :-)
Admin
Admin
Hmmmm.
Frankly I'd suggest we all call it the "Seventh Sense".
You know. The sense that it's time to leave for a new job.
Admin
Josh's mistake was in creating the work-around in the first place. In so doing, he covered the developers' asses from their own stupidity. He should have instead had all upgrades halted and bounced the whole thing back to the developers to fix. Would have given him less work and maybe some of the WTF developers would have disappeared...
Admin
I see stupid people; they're everywhere. They just don't realize they're stupid.
Admin
Dang, it is my area code... now I've got to find out what the "company" name is, so I don't end up taking a job there. My solution to the problem would be to put every single doofus in "Development" on a 24x7 rotation supporting their own godforsaken applications until they learn to write them properly. A few 3AM calls will set them straight.
Admin
Ha ha ha! Either you forgot to add the appropriate indices or you are using a crummy RDBMS. In either case, that would be the Real WTF.
Admin
Nope that doesn't work either. They'll just check it back in after commenting out the offending code. Then they'll spend the next few hours surfing the 'Net and say they're done. (You can't cure stupid.)
Admin
I wasn't saying Perl "is bad"; I merely described it. If you feel that my factual description implies some sort of value judgement, that is your problem.
Admin
Programming is a social thingie. If you are very smart, and make really amazing code, but code that is hard to understand because you use all the sintaxy sugar of the language, and all tricks, and even new tricks you invented. You will make your coworkers live in hell. is bad.
So having somewhat simple, somewhat boring, somewhat lame code is good.
Theres a limit. Of course. Where the social idioticy is so looow, that code is soo lame that able problems like no unique "identifiers". You must run, and go everywhere else. As some comments on the thread say.
Admin
867 5309(eeeine)!!!
;)
captcha : vern... I think they meant Jenny
Admin
I'm retarded, ignore me pls.
Admin
Ahh, CVS version history...the ultimate "I told you so!"
Admin
Maybe someone should give Josh a call - does the number work ?
Admin
I think this tells all:
"Honestly do we tell him his stuff is broken?\n"
Admin
If this number (not the fake number, but the one that "Brian" saw) was Josh's cell number, give the dude a call and ask where he works.
At least you'd be working with one problem-solver.
captcha: pirates...
Admin
This post has my vote as the official solution for this WTF
Admin
hahahahah this is too funny.. My name is Josh, and I've actually had to face this sort of battle before. LOL