- 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
Not in the code, but "Frist" went viral... what's the origin?
Admin
Isn't that an Orca?
Admin
This never went viral because it was noticed and removed, but I always remember it.
A client had made a fairly obvious mistake in how they entered some data, which led to one of those "you should never be able to trigger this" type error conditions. They didn't like that the software had allowed this even though it was triggered by the user doing something they really shouldn't have done. The error was fixed in the next version of the software but the client was staying on an older version and paying for extended support. The full fix was too complicated to backport, so a coworker added a check to warn the user if they'd done the stupid action. He prefixed the code with a comment along the lines of:
Admin
Incedentally, eh
Admin
One developer I didn't work with had the habit to place comments in places where he set values with " # force ". It was almost never a forced assignment, most of them were totally normal. Eventually this went viral and a lot of other developers started adding their own " # force " to reference that guy. Good times.
Admin
Yes it is an Orca The Orca is the largest member of the dolphin family
Admin
TRWTF here, of course, is that the programmer has insulted the end user while themselves failing to understand one of the subtleties of spelling of the language in which he used to insult them.
Whether the grammar they used is also a WTF depends on whether you adhere to the "descriptive" or "proscriptive" school of philosophical linguistics.
Admin
I think these qualify:
print "Just another Perl hacker,"
Useless Use of Cat Award
Admin
The UNIX comment is explained here: https://en.wikipedia.org/wiki/Lions%27_Commentary_on_UNIX_6th_Edition,_with_Source_Code
Admin
"automagically" as substitute for automatically.
Admin
Wow, that old-style assignment operator! I'm glad it never caught on.
Admin
I used to work with a developer named Andrew (this is important to the story). He had one of those "this error will never occur" situations but he decided to be more self deprecating about it. The error message that popped up on the screen in large not-so friendly letters was, "Andrew is an idiot!"
Guess which error occurred when demoing the software to the CEO of the client.
Now guess the name of said CEO.
Admin
A much better explanation is given by the late Dennis Ritchie on his homepage: https://www.bell-labs.com/usr/dmr/www/odd.html
Admin
"Guess which error occurred when demoing the software to the CEO of the client.
Now guess the name of said CEO."
That's gold Jerry!, Gold!
Admin
We had a user database that had a field called "IdiotLevel". Needless to see instead of removing it the dev set themselves as 0 and all the managers as 255.
Admin
I think these comments only come when code reviews aren't used (although, this one might have slipped by anyway). I would no longer get away with glib comments, but I wrote a comment above a gnarly method once (in a shop that didn't do regular code reviews), "This method here is what separates the men from the boys." That became a shop mantra.
Admin
A long time ago when VB6 and SQL Server 7 ruled the MSFT world and I was a novice developer starting out I wanted to differentiate my TODOs from other TODOs so I wrote Lemur instead of TODO. For some reason I used a message box during debugging to notify me of a branch in the code that should never be entered and wrote a lemur infested message in the message box. This remain in place up until AT testing when someone managed to trigger the condition that couldn't happen. Since then lemurs have plagued me through out my professional and private life.
Admin
"Every once in a whale ...", shirley.
Admin
We had to handle a lot of actions through controllers. Such as Scrolling, clicking, etc. So we decided on a standard naming convention.
We had ScrollHandler, ClickHander, etc.
Then we got into the next handler that we realized that we needed. We were pair programming. And I started laughing and I looked at my co-pair-programmer. After a second, he burst out laughing. We had to make a Hander for panning.
So in the bowels of our code base we have a class called SPOILER! PanHandler
Admin
This reminds me of a previous company where we used to play 'buzz word cultivation'. This involved seeding key managers with outrageously inappropriate buzz words and seeing how long they took to fall into regular usage (i.e. appearing in emails, company newsletters, board minutes and so on).
Sometimes these were just misspelled versions of existing phrases, sometimes they were obscure or suspicious euphemisms.
Thus we had:
The winner was a corruption of 'ring-fence'. I nearly passed a kidney laughing when the MD stood up and reassured us that the training budget was 'ring-pieced' for 2001. Simpler days...
Admin
I also had to have words with someone about this gem found in the live code base:
<snip> throw OAuthError ("Twat..."); </snip>Admin
I hope someday this will go viral - the preface for one of the worst classes in our codebase:
Admin
Based on the Lions and Dennis Ritchie pages linked to above, my understanding is it was worse than that - the code was actually wrong, but seemed to work anyway because of a quirk in how the C compiler being used at Bell Labs at the time emitted code for the PDP-11.
Hence their confusion; they could see that there was a problem, as every attempt to change the code broke it, but they couldn't figure out what the source of problem was because it was partially masked by the compiler's behavior, so they just gave up and marked it as "here be dragons".
The first time they ported the kernel to another type of computer (an Interdata mini, according to Ritchie) with a different C compiler, they noticed a show-stopping mistake in (IIUC) order they were calling the context-save/restore routines, winced in embarrassment, and re-wrote the whole thing function from scratch.
Admin
In the Multics equivalent of fsck, there's an error message in a "can't possibly happen" code path
HODIE NATUS EST RADICI FRATER
which is Latin for "today unto the Root a brother is born", a play on a line from the New Testament about the birth of Jesus. It happens if it crawls up the filesystem hierarchy and reaches a root node that doesn't match the filesystem's actual root. Of course, one day the error actually did show up while booting the OS. The full story can be found at http://multicians.org/hodie-natus-est.html
Admin
Oh I've had a few. We had one where some busybody from the press office replaced a directory containing 50 forms with an enterprisey solution that had a non-functional search and broke every link on every update. After enough angry calls from people 90 days into a 90-day filing period demanding to know why my site was "horrible broken," I just started hosting the forms locally. Said busybody saw that and whined, so a line went in to change the status bar text on those links, with a comment along the lines of "press office busybody complained about solution to problem created by press office busybody."
I worked on another system where an H1B "architect" refused to acknowledge bug reports. He had wrapped some ORM such that two successive Update() calls crashed the application server-wide. So I did this terrible reflection trick to climb through the stack and flip some flag he was setting wrong (TFS repository was locked - reads and writes - I had no choice). The comment read like "hack until Amberlamps is done doing the needful reverting the mails and fixes his buggy framework." Although, I think cramming 40 lines of code into 1 line with no spaces (so he wouldn't tinker with it and fuck it up without telling anybody) was probably a bigger middle finger.
I think the "nicest" I ever wrote when an H1B made processing CSVs really hard. Users received CSVs in e-mail, so the page let you upload them, parsed them, and returned the results. Really easy, really fast. H1B demanded SSIS because reasons but wouldn't unblock the DLL that kicked off SSIS. So the user had to browse the network, reupload elsewhere on the network, kick off a SQL job to move the file a 3rd time, flip a flag in a tracking table, kick off another SQL job to kick off SSIS, and spin until the flag was reset. Really slow, really uninformative when there were errors. The comment was something like "[8-line working solution commented out][25 new steps] sorry, Swampduh was confused, errors now disappear." It objected to "sorry."
Admin
My favorite one came from a typo: HandelData. We started making musical references in the comments.
The only one I did was on a custom reporting package I was building in the late 90's. All of these included the client's data point of including a "Beer and Wine" option. However, abbreviating it BW or BAndW in code kept making me think of Black and White, so I simplified it. All variables simply referenced as "booze".
Admin
No. I don't recognise the species, but it's certainly not an orca... colouring and shape are quite wrong. I assume it's some kind of porpoise as-advertised...
Admin
I would guess from the URL of the image (https://upload.wikimedia.org/wikipedia/commons/f/f5/Dalls_Porpoise_Underwater.JPG) that it is a Dalls Porpose.......
Admin
Yes, that could be a clue... ;)
Admin
Getting product and feature names past marketing was a hobby in a former team. We publicly shipped CHUD (reference to https://g.co/kgs/QuMVn1) and Windowed Trace Facility (shortened to WTF in the UI due to space constraints).
Admin
You just missed a perfect opportunity to drop a [cetacean needed] there.
Admin
This is amazing. Wonder if my comment will format properly, I can't remember if this stupid thing uses markdown or something else.
Admin
Is it? I thought Dolphin Lundgren was the largest...
Admin
In one of my program's log-files it writes "shitdown" instead of shutdown.
Admin
This one SHOULD go viral. In our codebase there is a comment from a developer who's no longer with us (left long before I started here):
//Decided spontaneously to enter this into production before I'm off to holiday tomorrow.
Admin
reminds me of a silly story: supposedly someone sat on a keyboard, and somehow touched the keys in such a way to make the on-screen prompt say "enter your assword".
Admin
LOL, the usual typo. YOurs a nonentered key, mine hitting wrong one. Since that one typo of me happened all of my private programs got that errored log-message as a running gag
Admin
I managed to sneak a prompt of "Press the any key to continue" into one of my apps. No one noticed :(
Admin
We did have someone leave a CSS comment along the lines of "/* CHECK OUT THIS HOT !@#$ RIGHT HERE */" and it stayed in the code for a year. One of our customers found it. The kicker is it was written immediately above rather mundane CSS.
Admin
Some genius PHB decided the simple command line interface we developers use for our embedded devices should be made available to customers who didn't want to pay for the nice GUI version. As it was a wrapper to configure the device, he dubbed it the cost reduced Wrapper, or crWrapper for short. Flushing the crWrapper never fails to raise a laugh 4 years on.
Admin
I remember seeing a class that sets up Hooks called "Hooker" somewhere.
Admin
I used to work for a guy named Mikhail, and the product I worked on was written in C. I came across a few comments in the code left by a developer that worked there before me. In each case the comment said something like: "I didn't want to write the code this way, but Mikhail made me do it." The really funny part is that this company would release the source code to customers allowing them to run Make to build it themselves. I often wonder how many of the customers saw the comments.
Admin
I did, at one point, have a program that required certain authorization to get into.
Before going into production, if invalid credentials we're out in, a message box would pop up saying, "Do you think this is a f**king game? Access denied!" (Not censored mind you.)
Co-workers and I had a good laugh...
Until one of them accidentally pushed it out to users without my knowledge.
I handed in my two weeks notice. My boss had to keep from laughing while he told me it was a really bad offense but he wasn't going to fire me.
To this day, co-workers and staff walk by my cube and say, "Remember Gary. It's not a f**king game."
Admin
I've become a vector for this, but how may people must it infect to be classed as viral?
Some years ago I was walking through the basement that connected most of the buildings where I worked, and there was a length of two-by-four (or maybe four-by-two, it was a while ago) sitting on a shelf, above a sign saying "In case of emergency hit Brian with stick" and blue-lined with "really hard". Years later while working on a VBA-encrusted masterpiece in another company and country, I titled some of my should-be-impossible error messages "hit [Haggishunter] with a big stick." So far the stick is untriggered.
Admin
I found this comments in the angular.js source amusing. They occur multiple times:
// Insanity Warning: scope depth-first traversal // yes, this code is a bit crazy, but it works and we have tests to prove it!
Admin
One of my favourites, which should have gone viral but didn't really do so, partly because things typically didn't in those days, is the VMS "microfortnight": http://www.catb.org/jargon/html/M/microfortnight.html
Admin
Mmm.. good to be here in your article or post, whatever, I think I should also work hard for my own website like I see some good and updated working in your site.