Comment On A Peculiar System

Near the end of the new contractor’s first week, Taka Sora was starting to wonder if he made the right hiring decision. Richard – the contractor in question – seemed to know his Action Script 3, but there was just something about him that wasn’t right. And it wasn’t the strange noises that he was making all day. [expand full text]
« PrevPage 1 | Page 2 | Page 3 | Page 4Next »

Re: A Peculiar System

2009-07-20 09:04 • by gosse (unregistered)
Nice waste of money.

Re: A Peculiar System

2009-07-20 09:04 • by leppie (unregistered)
Been there seen that (more than a few times)... :(

Re: A Peculiar System

2009-07-20 09:05 • by snoofle
What's so hard? With the help of the dictionary and a few global renames, it should have quickly been legible. No comment on functional correctness.

Re: A Peculiar System

2009-07-20 09:07 • by Readers Digest (unregistered)
New guy made funny noises / variable names. Fired. Boss had to work weekends. NoOneElseEverNoticed.

Re: A Peculiar System

2009-07-20 09:18 • by zach (unregistered)
well captcha's been cracked...

Re: A Peculiar System

2009-07-20 09:19 • by Pete P. (unregistered)
The true WTF is the spam comment not formatted right by the first time.
Which leads me to the conclusion that this comment might be a WTF as well as soon as the spam is removed.
(All that without adding 'Frist!' in the first place...

Re: A Peculiar System

2009-07-20 09:22 • by DOA
That's the lesson he learned? Really?
How about "check the newbie's source control commits"? How about that?

Re: A Peculiar System

2009-07-20 09:25 • by galgorah
277031 in reply to 277029
Well I would remove it if I could. Due to CS being a WTF in and of itself, mods cannot delete comments on articles. we're strictly forum monkies. Ammoq or Alex may be able to remove it. Hopefully without having to poke around in the DB

Re: A Peculiar System

2009-07-20 09:26 • by OldCoder (unregistered)
The real WTF is expecting anyone who reads this site to be able to afford gold in the first place...

Re: A Peculiar System

2009-07-20 09:27 • by Oruko (unregistered)
My ori is undergoing an ibi. Surely a wtf oba -- a serious ologun at least.

Okus of my eguns, carry me ile...

Re: A Peculiar System

2009-07-20 09:29 • by fuzzix
277034 in reply to 277028
zach:
well captcha's been cracked...

Just tried a little something out there:
$ gocr -i cap.jpg -C a-z
Worked about 20% of the time. I'm sure a little processing before gocr (1 bit reduction with a certain threshold) would increase this. Not what I'd call cracking.

Re: A Peculiar System

2009-07-20 09:37 • by Lupus.Umbrae (unregistered)
277035 in reply to 277033
wow... The further I read this article the more my face morphed from a normal human face to a Ô_ó . I mean at the end it looked exactly like Ô_ó ...

Re: A Peculiar System

2009-07-20 09:39 • by blah (unregistered)
Fools. They fired the man who is going to revolutionize quantum computing.

Do re mi fa so la...

Re: A Peculiar System

2009-07-20 09:51 • by TSParent (unregistered)
Normally, I only quietly read TDWTF, but today hit a nerve.

"Making animal noises" wasn't the reason the person was fired, and I hope wasn't even one of the reasons they considered firing him. Making those types of sounds is a very recognizable symptom of Tourette's Syndrome. FIring the person for not performing their work is one thing. Firing them because of a disability that has them making odd sounds... wrong.

(Most people have no realization of what complex verbal tics are, which can range from animal sounds to cursing. And yes, I have a son with TS, who not only "neighs" at times but also "paws" the air like a horse.)

Sorry for the rant -- it just irritates me when I see people responding to TS (and TS-type symptoms) with prejudice due to lack of information.

And, as someone who works with someone who still things single-character variable names are great -- why wasn't someone reviewing his code, and thus catching this WTF?

Re: A Peculiar System

2009-07-20 09:52 • by Anonymous (unregistered)
Best excerpt from the mangled code:


ourTree.bearFruits()

Re: A Peculiar System

2009-07-20 09:54 • by Richard (unregistered)
We had a weird contractor once, oh, a decade ago. One of these guys who charged 5X what the regular code monkeys got, and wrote lots of crap that needed lots of hours from him to keep up and running. Eventually he went away, and I was left to fix (read: rewrite) one of his modules.

Anyway, one of his habits was using 9 and 13 instead of TRUE and FALSE. I don't remember how long it took me to figure that out. <<Shudder>>

Re: A Peculiar System

2009-07-20 09:56 • by Anonymous (unregistered)
If anyone on my team dared to pull that crap I would personally blacklist them across all our sites and would file a formal complaint with the agent that found them (assuming there was an agent involved, of course). If you want to code in Elven then bugger off to Rivendell. This is so utterly inappropriate, I really don't know how anyone could think they could get away with rubbish like this.

Oh, and it looks like the inevitable finally happened: the spammers now outnumber regular visitors. Some sort of filter is inevitable so why not just filter according to link count (eg. >3 links and the post gets swallowed)? Very simple, easy to implement but should deter most of the spam.

Re: A Peculiar System

2009-07-20 10:02 • by Anonymous (unregistered)
277041 in reply to 277025
Readers Digest:
New guy made funny noises / variable names. Fired. Boss had to work weekends. NoOneElseEverNoticed.
You're not quite getting this, are you? The joke is that you trot out the "factual description" to highlight how boring the post was and to suggest that this is simply a machination of everyone's normal working day. The problem is, today's post was actually quite amusing and showed us something that, whilst not unknown, is fairly uncommon. As such, we'd all very much appreciate it if you could just crawl back into the rotten piece of wood that you emerged from and stay there until you have something relvant to say. Thanks from all at TDWTF!

Re: A Peculiar System

2009-07-20 10:07 • by My village needs me (unregistered)
277042 in reply to 277039
Richard:
We had a weird contractor once, oh, a decade ago. One of these guys who charged 5X what the regular code monkeys got, and wrote lots of crap that needed lots of hours from him to keep up and running. Eventually he went away, and I was left to fix (read: rewrite) one of his modules.

Anyway, one of his habits was using 9 and 13 instead of TRUE and FALSE. I don't remember how long it took me to figure that out. <<Shudder>>
OK, I give up, why 9 and 13?

Re: A Peculiar System

2009-07-20 10:08 • by Anonymous (unregistered)
277043 in reply to 277028
zach:
well captcha's been cracked...
They wish! If the captcha had been cracked and the spam posts were automatated then it wouldn't take them two tries to get the BBCode formatting right. So we have to assume that the spammers are actually lurking on TDWTF and posting their spam by hand. Which means we are dealing with the single most retared spammers ever to hock their wares over the internet! Hey spammers, I hope you're learning something!

Re: A Peculiar System

2009-07-20 10:08 • by Severity One
Interestingly enough, the spam corrolates with the Elven theme from the article.

But what I don't get is that, with so many Unix-based systems about, Alex insists on running this site on this rubbish Windows application that more security holes in it than the OS it runs on. Did I mention that you don't pay any license fee for any of that software?

Re: A Peculiar System

2009-07-20 10:09 • by Handalóra (unregistered)
277045 in reply to 277040
Anonymous:
If you want to code in Elven then bugger off to Rivendell.

What a staggeringly racist remark. I've forwarded your post to the Council of Elrond as an example of the kind of persecution we face every day.

Re: A Peculiar System

2009-07-20 10:10 • by lolwtf
My village needs me:
OK, I give up, why 9 and 13?
Because 7 8... er, no...

I know I use the "spirit" keyword all the time in my code. Very useful.

Re: A Peculiar System

2009-07-20 10:15 • by George Nacht
277047 in reply to 277037
TSParent:

"
(Most people have no realization of what complex verbal tics are, which can range from animal sounds to cursing. And yes, I have a son with TS, who not only "neighs" at times but also "paws" the air like a horse.)

Sorry for the rant -- it just irritates me when I see people responding to TS (and TS-type symptoms) with prejudice due to lack of information.

?

Fully agree with the remark about need to understand Tourette´s syndrome. However, there is Tourette´s Syndrome, and then there is Tourette´s syndrome...on LSD laced crack.

Re: A Peculiar System

2009-07-20 10:16 • by DoubleUFive (unregistered)
All you Ile are belong to us.

Re: A Peculiar System

2009-07-20 10:16 • by Kiss me I'm Polish
Yeah. Well. At least it wasn't pseudo-japanese "otaku".

Re: A Peculiar System

2009-07-20 10:16 • by TadGhostal (unregistered)
277050 in reply to 277037
TSParent:
...I see people responding to TS (and TS-type symptoms) with prejudice due to lack of information...


I prefer to respond to to everything that I lack information about irrationally and with prejudice. It's the only way to stay safe.

Re: A Peculiar System

2009-07-20 10:19 • by Anonymous (unregistered)
277051 in reply to 277037
TSParent:
Normally, I only quietly read TDWTF, but today hit a nerve.
<snipped some rubbish about tourettes>

You do realise it's all in your head, don't you? Notice how you get that urge to tic, like you have to do it, otherwise something really bad will happen? You could just decide not to tic, but you feel like some terrible thing will happen if you don't. Just like OCD - you don't have to do it but you're such a fuck-up that your brain convinces you that you do. My advice for Tourettes sufferers: just stop doing it you fucking weirdos! There, problem solved.

Re: A Peculiar System

2009-07-20 10:20 • by MikeCD (unregistered)
I hope he had some refactoring tools handy.

Re: A Peculiar System

2009-07-20 10:29 • by J.R.R. Trollkien (unregistered)
277054 in reply to 277051
Anonymous:
TSParent:
Normally, I only quietly read TDWTF, but today hit a nerve.
<snipped some rubbish about tourettes>

You do realise it's all in your head, don't you? Notice how you get that urge to tic, like you have to do it, otherwise something really bad will happen? You could just decide not to tic, but you feel like some terrible thing will happen if you don't. Just like OCD - you don't have to do it but you're such a fuck-up that your brain convinces you that you do. My advice for Tourettes sufferers: just stop doing it you fucking weirdos! There, problem solved.

Now, for "Tourette's", read "trolling", and then take some of your own advice.

A made-up language, WoW, elves and trolls -- what's with the fantasy theme?

Re: A Peculiar System

2009-07-20 10:31 • by Optimus Dime (unregistered)
277055 in reply to 277044
Severity One:
But what I don't get is that, with so many Unix-based systems about, Alex insists on running this site on this rubbish Windows application that more security holes in it than the OS it runs on. Did I mention that you don't pay any license fee for any of that software?

I didn't realize that Unix-based software had reached the point of sentience...I'd be interested to see the magical routine used to determine that the poster is a spammer even though they still type in the captcha...

Captcha: sagaciter -

New brand of fermented apple drink from the folks who brought you Dickin's original....

Re: A Peculiar System

2009-07-20 10:35 • by tOmcOlins
277056 in reply to 277042
My village needs me:
OK, I give up, why 9 and 13?

CR and TAB?
It makes much more sense than 1 and 0 if you think about it.
NEEEIIIIGGGGHHHHH!!!

Captcha much?

2009-07-20 10:36 • by anonymous_coder() (unregistered)
C'mon - recaptcha isn't *that* hard to code. Took more time to convince my boss it worked than to actually jam it into our sites. And it makes the comment spam much harder to pull off...

Re: A Peculiar System

2009-07-20 10:45 • by Some Lawyer-wannabe (unregistered)
277058 in reply to 277037
TSParent:
"Making animal noises" wasn't the reason the person was fired, and I hope wasn't even one of the reasons they considered firing him.


Employment "At-Will" means you can be fired for any reason or no reason at any time without prior notice. I'm sure they opted for latter "no reason".

Re: A Peculiar System

2009-07-20 10:47 • by luptatum (unregistered)
277059 in reply to 277051
Anonymous:
TSParent:
Normally, I only quietly read TDWTF, but today hit a nerve.
<snipped some rubbish about tourettes>

You do realise it's all in your head, don't you? Notice how you get that urge to tic, like you have to do it, otherwise something really bad will happen? You could just decide not to tic, but you feel like some terrible thing will happen if you don't. Just like OCD - you don't have to do it but you're such a fuck-up that your brain convinces you that you do. My advice for Tourettes sufferers: just stop doing it you fucking weirdos! There, problem solved.

Actually, its not a concious urge. You just blurt stuff out without any control of it.

Re: A Peculiar System

2009-07-20 10:47 • by Steve the Cynic (unregistered)
277060 in reply to 277055
Optimus Dime:
Captcha: sagaciter -

New brand of fermented apple drink from the folks who brought you Dickin's original....


If I wanted fermented apple drink, I'd go for the more conventional Weston's, Ecusson, or something like that...

You know, cider. Proper cider, that is, not the silly stuff they sell west of the Altantic which hasn't even been near yeast.

Re: A Peculiar System

2009-07-20 10:52 • by aimy (unregistered)
I wonder if the neighing was actually some sort of incantation upon the arcane spell he was preparing.

There's some missing ingredients, no wonder it doesn't work properly. Though things started off well, the budget was not large enough: he was just trying to make gold with what he had (alchemy).

Re: A Peculiar System

2009-07-20 10:58 • by RonMexico (unregistered)
What does a gay horse eat?

HAAAA-AAAYY!

Re: A Peculiar System

2009-07-20 11:07 • by aleph (unregistered)
277064 in reply to 277055
Optimus Dime:

Captcha: sagaciter -


You know, if a spammer were to browse the article comments for instances of "captcha: *", they could just build a dictionary for their OCR software and "crack" the captcha easily enough.

Re: A Peculiar System

2009-07-20 11:10 • by smbarbour
277067 in reply to 277060
Steve the Cynic:
Optimus Dime:
Captcha: sagaciter -

New brand of fermented apple drink from the folks who brought you Dickin's original....


If I wanted fermented apple drink, I'd go for the more conventional Weston's, Ecusson, or something like that...

You know, cider. Proper cider, that is, not the silly stuff they sell west of the Altantic which hasn't even been near yeast.
I realize that by explaining a joke, it is no longer funny, but read this phrase to yourself (and what it would sound like when you say it):

"There is nothing better than a hot Dickin's Cider."

To keep the humor (or humour, if you will) alive, "If you add yeast, she's going to get an infection."

Re: A Peculiar System

2009-07-20 11:10 • by Sandor (unregistered)
277068 in reply to 277046
lolwtf:
My village needs me:
OK, I give up, why 9 and 13?
Because 7 8... er, no...

I know I use the "spirit" keyword all the time in my code. Very useful.


well...

9 mod 3 == 0 == FALSE
13 mod 3 == 1 == TRUE

no, that is not it

NOT(9 mod 3) == 1 = TRUE
NOT(13 mod 3) == 0 == FALSE

There, I fail to see what the problem is with using 9 and 13 instead of true and false. It all makes perfect sense to me. However, at the moment i am commited to psychiatric hospital

Re: A Peculiar System

2009-07-20 11:10 • by Splork (unregistered)
277069 in reply to 277036
blah:
Fools. They fired the man who is going to revolutionize quantum computing.

Do re mi fa so la...


I assume you meant "Do Do Re Mi So"

Re: A Peculiar System

2009-07-20 11:12 • by GalacticCowboy
277070 in reply to 277037
TSParent:
Normally, I only quietly read TDWTF, but today hit a nerve.

<snip re: tourettes />


So your allegation is that the horse-like noises were Tourettes, and not the guy just reading his code aloud?

Re: A Peculiar System

2009-07-20 11:13 • by GalacticCowboy
277071 in reply to 277039
Richard:
Anyway, one of his habits was using 9 and 13 instead of TRUE and FALSE. I don't remember how long it took me to figure that out. <<Shudder>>


Clearly, 9 is composite and 13 is not. Problem solved.

Or perhaps, 9 is a single digit and 13 is not?

Re: A Peculiar System

2009-07-20 11:17 • by Speller (unregistered)
277073 in reply to 277069
Splork:
blah:
Fools. They fired the man who is going to revolutionize quantum computing.

Do re mi fa so la...


I assume you meant "Do Do Re Mi So"



Great, here come the TS Spelling Nazis ...

Re: A Peculiar System

2009-07-20 11:18 • by TGV
277074 in reply to 277068
Sandor:


well...

9 mod 3 == 0 == FALSE
13 mod 3 == 1 == TRUE

no, that is not it

NOT(9 mod 3) == 1 = TRUE
NOT(13 mod 3) == 0 == FALSE

There, I fail to see what the problem is with using 9 and 13 instead of true and false. It all makes perfect sense to me. However, at the moment i am commited to psychiatric hospital

Ask for different meds, because it is quite obvious that 9 + 4 == 13, so if we have a value, say x, and we want to test whether it is true or not, all we have to do test x & 4. Simple. Now, the good thing is, you can use bitwise | and & and it still will work, just like with ordinary boolean representations. And of course, you can add them, so 22 can be FILE_NOT_FOUND (easily detected because it is not an odd value). It's just perfect.

Re: A Peculiar System

2009-07-20 11:30 • by Patrick (unregistered)
I got the impression that the "animal noises" he was making were more likely his attempt to read his own code aloud. Some programmers do find that helpful when trying to step through a difficult problem. Only in this case, he was using code that sounded like a constipated horse.

captcha - conventio (n? convention? as in bad coding __?)

does that captcha list contain "perfectionis"? that'd be really irritating.

Re: A Peculiar System

2009-07-20 11:35 • by FTFY (unregistered)
277076 in reply to 277059
luptatum:
Anonymous:
TSParent:
Normally, I only quietly read TDWTF, but today hit a nerve.
<snipped some rubbish about tourettes>

You do realise it's all in your head, don't you? Notice how you get that urge to tic, like you have to do it, otherwise something really bad will happen? You could just decide not to tic, but you feel like some terrible thing will happen if you don't. Just like OCD - you don't have to do it but you're such a fuck-up that your brain convinces you that you do. My advice for Tourettes sufferers: just stop doing it you fucking weirdos! There, problem solved.

Actually, its ARSE not a concious urge. You just blurt FUCK stuff out without BUGGER any control of it.


FTFY

Re: A Peculiar System

2009-07-20 11:38 • by Vilhelm (unregistered)
277077 in reply to 277051
Anonymous:
TSParent:
Normally, I only quietly read TDWTF, but today hit a nerve.
<snipped some rubbish about tourettes>

You do realise it's all in your head, don't you? Notice how you get that urge to tic, like you have to do it, otherwise something really bad will happen? You could just decide not to tic, but you feel like some terrible thing will happen if you don't. Just like OCD - you don't have to do it but you're such a fuck-up that your brain convinces you that you do. My advice for Tourettes sufferers: just stop doing it you fucking weirdos! There, problem solved.


That is all well and good until you actually have Tourettes. Trying to force yourself to quick having the twitches is like trying to stop breathing. Go ahead and hold your breath for a few minutes. You can't suffocate yourself by holding your breath because your choice to stop breathing gets overwhelmed by your involuntary instinct to breathe. I can choose to quit twitching, but after a few minutes, my involuntary mind takes over.

Re: A Peculiar System

2009-07-20 11:41 • by MisterCheese (unregistered)
277078 in reply to 277074
TGV:
Sandor:


well...

9 mod 3 == 0 == FALSE
13 mod 3 == 1 == TRUE

no, that is not it

NOT(9 mod 3) == 1 = TRUE
NOT(13 mod 3) == 0 == FALSE

There, I fail to see what the problem is with using 9 and 13 instead of true and false. It all makes perfect sense to me. However, at the moment i am commited to psychiatric hospital

Ask for different meds, because it is quite obvious that 9 + 4 == 13, so if we have a value, say x, and we want to test whether it is true or not, all we have to do test x & 4. Simple. Now, the good thing is, you can use bitwise | and & and it still will work, just like with ordinary boolean representations. And of course, you can add them, so 22 can be FILE_NOT_FOUND (easily detected because it is not an odd value). It's just perfect.


Indeed. It is also very simple to invert:
y=11-(x-11)

I wish all the code I support was written by elves.
« PrevPage 1 | Page 2 | Page 3 | Page 4Next »

Add Comment