- 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
In all the efforts I've seen to intentionally mangle code to secure your position as the "only developer who knows how to handle this program", the developer in particular who mangled the code is shown the way out eventually and the new coders manage to un-mangle things over time without issue.
Bottom line, don't do it do you really want to be known as "that guy who could have only intentionally mangled that code."
Admin
shook his frist?
...
Sorry
Admin
Why can't I be Frist?
Admin
i lost it at hunter2
captcha: duis you duis for me, you be a made man
Admin
Love the reference to this in the password box.
Admin
Lyin', instantiatin', overloadin' that's all you seem to do.
Messin' around every function in town...
C'MON EVERYBODY!
Your time is gonna come.
Admin
Uh, Mark, you forgot to include the line where it actually says he got fired.
Admin
hunter2? I think Gary had help form the IRC to write the code.
Admin
I've seen people do this before, but usually management buys into the bullshit. Every 6 months they claim to be getting offers elsewhere so that management will give them a pay increase to stay.
Semi-off-topic: I actually had to game the system like this once. My boss wanted to increase my pay to match that of same-titled developers on another team, but the budget office refused to budge (no pun intended... well, maybe some). The other team had new hires and open positions at 20% more than my salary.
So my boss ordered me to apply for a job with them. When I got an offer he complained to the budget office about losing me, that I was irreplaceable, and it was enough to secure a pay increase. The other team wasn't very happy with him after that.
Aren't office politics fun?
Admin
You win the Internet today. :D
Admin
I really don't understand the WTF. Obviously, posting the same method every where is a WTF, but the method itself appears to be just boot strapping a configuration file.
Admin
TRWTF is headless environments.
Admin
Yeah, maybe I'm being stupid, but doesn't this just write the string "https://initech-global.com/scripts/mc.exe/scrip.w\masvr8b\share\scrip,adiamond,hunter2,False" to some file?
Is the WTF that he put a backdoor on their webserver?
Admin
This line in particular might be relevant:
Admin
I'm not quite following the story or the WTF here. I mean, I see the obvious ones -- code replication, open password everywhere, communicating login info through writing and reading a file in the same process, VB -- but the failure itself is unexplained. Was the failure due to the missing file being needed by one of the classes which hadn't been coded with the file write? Was the failure due to the duplicated code being executed more than once at the same time, causing a write exception? Or did the process hang because it popped up a message box on a server with no terminal? Maybe that's why "unattended" is used in the title and final sentence with no other context.
Admin
The WTF is that there's a modal dialog box in an unattended server-side process, hanging the process cos there's nobody to click OK.
Admin
Unattended services should not require user intervention to click an 'OK' button.
Admin
I thought it was pretty obvious that the WTF is the dialog box in server code.
Admin
Admin
The WTF here for those who seem to not be getting it is that he's opening up a modal dialog box from an unattended location, so no one can click "ok" and have the process continue. So it just hangs there waiting for someone to press ok.
Admin
I thought that the WTF was that he'd hardcoded his username, which got disabled when he was fired ...
Admin
Admin
Upvoting this. Where I work, a disgruntled developer snuck some code in that deliberately disabled a critical interface some weeks after he had left (having first taken the precaution of "losing" the source code in a "hard disk failure").
It took me one day to re-write from scratch, and less than a weekend of disassembling to prove that it was a deliberate criminal act...
Admin
Amateur hour. I've worked with at least half a dozen people more irreplaceable than that. Last one was a woman whose favorite trick was playing the shell game with the temporary files generated by the accounting system. She was convinced we'd hire her back in a week, but it only took me 4 days to rip out her crap.
The worst thing about that kind of person, is that they honestly believe their self-hype. The best thing is that removing their obfuscating crap almost always makes the system fly which makes you look like a hero.
Admin
I thought the idea was that since they fired him, the company would have revoked access and changed his passwords so the password hardcoded in his script would fail and the job would die.
Admin
SW.Write("adiamond,") SW.Write("*******,") SW.Write("False")
here?
Admin
The TRWTF is VB. I mean, it's ugly as hell. At least it took me seconds to see the WTF even when I haven't read VB code in over 15 years. BTW, how did this job worked in the first place? Did he have a remote desktop to each server all the time? Good point for having management buy you four monitors.
Admin
Admin
“genius developer extraordinaire” + VB = XD
Admin
If you haven't read VB code in the year, then you obviously don't read TDWTF.
Captcha: plaga, or the Spanish word for the plague that VB is on the world.
Admin
Which decision? To have vanilla icecream instead of triple choc at the next staff party? To buy Gary a new pair of football boots with the social club's yearly takings? I'm hanging on this.. which decision is this referencing?
I can only assume that Gary got sick of waiting on management's decision and quit his job for a much better paying one where his services were appreciated.
Admin
Anything that goes into the codebase, particularly if you have any sort of source control is going to be an easy fix. And, it makes it pretty easy to cross the line into 'criminal behavior'.
It is way better to have a series of important, complex, tasks that you've automated in a tiny sandbox that you schedule to run every day/week/whatever.
When you leave, a lot of things will simply 'not happen'. Which is different than you inserting code that 'happens, badly'. And, it's impossible to revert your changes, because there weren't any changes.
I didn't do this intentionally, but when I left my first job (on good terms, but short notice) I'd get calls about failed jobs (I was still listed as the contact) for several weeks; until I finally just said, 'Look, don't call me anymore'. If someone wanted to do this, on purpose, they could.
Admin
Everybody who says that they don't know what the WTF is RTRWTFs! Please put your keyboard away and make my hmburger now and I want a liter of Cola.
Admin
Source control is nice, however try to track what the hell happened over the course of months, mixed with other people changesets, mixed with branching and merging... Not saying it's impossible, just extremely difficult.
Admin
The decision whether or not to agree with Gary's self-assessment.
Admin
Go to the headless box, and click on the "OK" button in the dialog box.
Oh, wait...
Admin
One wonders why the code was working when he was still in the company ....? :-)
Admin
Yeah, no kidding... Talk about working hard, not smrt... I mean smArt.
He effectively made himself a useless and brainless cog in a machine. Kind of like one's appendix...
Admin
Admin
Is this how you fix it?;P
Admin
' Checks for the existence of the file. If it does not exist, ' tries to create it. –Gary B. 12-OCT-05 ' Added confirm box for debugging purposed – Gary B. 13-OCT-05 ' Added "Gary Bot" feature to do Gary's job while he's afk - frits 13-JAN-11
Admin
Cool, the drinking bird in code...
http://1.bp.blogspot.com/_GzQNaaZsh_8/SnruQ-v9s9I/AAAAAAAAMeM/vRQoCVlQxfE/s1600-h/20.jpg
I'm adding a bunch of text here... blah blah blah
Admin
Yet another WTF here is showing the message box with 2 buttons (MessageBoxButtons.OKCancel), but not checking the result...
captcha: "genitus" (genitus developer extraordinaire ?)
Admin
Yeah I guess his biggest failure was to assume the reader to be capable of thought and having the ability to connect the dots.
Admin
Is that what you told frits when he started spanking boys in Sunday school?
Admin
*** empty log message ***
Admin
Admin
They could also click "Cancel".
Admin
Found the error ^^^
Admin
I expected there to be a "might be needing this later" reference. Are we sure that TRWTF is using a modal dialog? Perhaps he truly is an evil genius after all...
... perhaps not.