- 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
According to Jim Cunningham, the opposite of Love is Fear.
Fear |-------------------------| Love
Admin
truth-be-told... it looks like a unit test crutch.... left behind by mistake. However, it is private... maybe it's overloading a parent, which children naturally do.
Admin
How about this? I had an error message in some cross-platform code, that was used in both a client and server application. The server was proprietary, not released to anyone else, and only ran on Linux. In a specific error case, which I only really expected the server to ever hit (there I go, making assumptions), it had real error messages describing exactly what had gone wrong. But I never bothered writing the Windows code to get that information.
Well, we had someone from Microsoft testing out the client. And they managed to hit it. The error they saw due to my laziness? "Failed to blah blah, reason: Windows sucks."
Needless to say, it started reporting numeric error codes on Windows the very next day.
Admin
Perhaps he was dictating.
Admin
Ehmm. There is an error in the code for the leap years: 1900 is NOT a leap year.
Admin
It's called ENGLISH for a reason. "Licence" is correct. The real WTF in the second one is the mis-spelling of "centre".
Admin
I think that you will find that the WTF is that you don’t know anything about HTML, if you did then you would know that it uses American spellings.
I would say that the developer was British ergo the spelling of “Licence” was correct for this side of the pond, and the spelling of “center” is also correct as well in the context of the code.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
http://www.cafepress.com/thedailywtf/520878
<o:p></o:p>
Go buy one of these and drink from it with pride you earned it …[;)]
Admin
The opposite of passion is indifference. Hate and Love both imply a certain intimacy and interest in the other's actions and thoughts.
Your homework for today will be to construct the shape that contains the set of coordinates to describe human being's state with respect to love/hate, and how much of it.
Admin
I tend to write 'color' in code, and 'colour' in comments.
I just like 'colour' better. 'color' is just a small step removed from the barbaric 'kolor'.
Admin
It is also only a small step away from 'colon'.
Admin
Speaking of unprofessional error messages, a few months ago I was trying to teach a coworker how to use CVS. We use a CVSNT service as our repository. She was having lots of very strange networking problems on her computer, however. Appearantly those networking problems were preventing the connection to the repository from working as well. Imagine my surprise when I tried to check out a module, and the reply I got from the CVSNT service was "I hate you."
CVS is open source. If you don't like it, go into the code and change it.
My favorite is from Screen...I had it crash on me, and the outputted error massage was: "The Dungeon Collapses. You die."
Short, sweet, and to the point.
Admin
EXACTLY
Admin
Looks like this support person knows the golden rules of porting:
Admin
I think it comes down to what the users are like.
A fellow programmer would get a laugh out of something like this. Some users, though...
Admin
This is outcome-based verification. Negative results may destroy the self esteem of the user.
Admin
I'm intrigued - what search-string do you use to find all the unprofessional comments during the pre-release build?
I'm thinking it's likely something like "Aa*r*g*h*".
I'm not sure that differentiating between errors by the number of as, rs, gs and hs is any more friendly and helpful than using error codes.
Admin
I would wonder what other stunts might be in the code.
Yes, they could lose clients over things like this. There are certain expectations of professionality. Examples have already been given of demo blow-ups with inappropriate error messages.
The story of a mailing letter that opened with "Dear Rich Bastard:" due to some test data or code not being reset may be apocryphal, but others are not: <http://www.snopes.com/business/consumer/bastard.asp>.
Sincerely,
Gene Wirchenko
Admin
So it matches any line that contains 'A'.
Admin
and immediately after reading through this WTF i notice this comment in my companies software
// db connection
var conn = Server.CreateObject("ADODB.Connection");
// load info
sSql = "select... ";
var rsOne = conn.Execute(sSql);
// i hate writing Response. every time
with (Response) {
...
}
Admin
Sadly, this was the first thing i thought of when I saw that as well.
-dave-
Admin
Umm, I'm afraid not.
Licence is a noun, License is a verb. The two are not interchangeable.[:)]
Admin
Heh. A couple friends of mine used to work together as in-house developers. We'll call them Mr. Pink and Mr. White.
One day Mr. White answers the phone, on the other line is a customer. He'd been using some billing software the the company had written for this particular client, but found something slightly odd when making a transaction. Unsure how he stumbled accross it, but there before him was a nearly blank page, with three simple words: "YOU'RE A HOMO". Apparently while writing this particular page, Mr. Pink had forgotten to remove a few bits of, er, debug code. In this case, after every transaction went through, he'd left die("YOU'RE A HOMO");
Was quite funny. Funnier still that he wasn't fired for this :)
Admin
However Arrrrgggg! (and its misspelling) are part of ISO 094423.
Admin
I got into an argument with my telephone company once that was almost this funny. There was a disputed item on my phone bill, an expensive call to Uganda or some such remote place (I'm in Canada). After much argument, the phone company rep finally admitted that, well, unlike most bills, the data on this particular one had been entered by hand. But that couldn't possibly be the source of any errors!
Admin
Perhaps he was dictating.
Admin
I had the (un)enviable task at one point of fixing an ASP.NET form that was supposed to retrieve some data and show it in an editable form. However, it would always be blank with a little message in the corner saying "something else happened". Turns out that the original developer had one try/catch block around the entire data load process, so any exception resulted in this message appearing. And the reason it was showing up 6 months later was because somebody changed the DB schema under the mistaken impression that 1) nobody used that field anyway, 2) nobody would care and 3) unit tests are for sissies.
So you've met my kids, then? [:)]
Admin
Has nobody noted that the loop variable is always a 4 digit number? A 5 character string left padded with zero's can be done with a single statement that prefixes the the loop variable with a single '0' character.
This proposal obviously isn't a generic solution; it's completely dependent on the range being a 4 digit number. Changing the range for the loop variable would clearly invalidate the code I proposed. The original developer would argue that he did it to protect against future maintenance, but we all know better, and where's the fun/WTF in that?
Ciao,
-- Les
Admin
I just found this exact method in our Java app at work today:
private bool IsValid() { return true; }
I was too afraid to investigate it.
Admin
oh, that "i didn't change anything" story reminds me of a similar story i read: someone called tech support, complaining that a program had stopped working. when the tech asked if he made any changes to his hardware, he said he "hadn't changed anything"...
he had just got a COMPLETELY NEW COMPUTER, with completely different hardware, AND a different version of Windows, but he "hadn't changed anything"...idiot.