- 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
Look up 'Duck Song' on YouTube....
A duck walked into a lemonade stand, and he said to the man running the stand, hey (bop, bop, bop)....got any grapes?
Admin
Admin
Fake nagesh is double TRWTF.
Admin
Admin
Admin
Hey, after the first 'FTFY', it became our quote!
Admin
I may be very wide of the mark here, but do the words 'valoo chicken' mean anything to you?
Admin
Can't be - it works
Admin
Admin
That don't look backward to me....
You're at least the second person here today who seems to struggle with the conspet of backward. Most of the syllables are still the right way
Admin
I'd add a new item to the database, maybe ...
Now, let the developers try to figure out why it started giving this for an empty search string...
Admin
poke it in the bum
Admin
There is an xedit version for windows
Admin
Admin
So you're proud of your sock puppets?
Admin
[quoteuser=whila][quote user="boog"][quote user="Unfrits"][quote user="frits"][quote user="boog"][quote user="frits"][quote user="boog"][quote user="java.lang.Chris;"]The only justifiable reason for the previous developer doing this is that he/she wasn't allowed to change the underlying data access code.[/quote]Why would the previous developer have needed to change the underlying data access code? Was it broken?[/quote]
Oh I'm sure it worked as well as any super sophisticated SQL LIKE query would... [/quote] Maybe it does. And maybe the search operation starts out with
or something to that effect. Is it unlikely that the API developers decided "empty string" was an invalid input that they didn't want to handle?[/quote]
You may want to re-read the article. The 500 error occurs when "supercalifragilisticexpialidocious" is the search term, not an empty string. Or do you mean that "supercalifragilisticexpialidocious" is a magic invalid term?
The error encountered could be something similar to this. [/quote]
[quote user="From the Article"]he noticed that he would receive a 500 Server Error if he tested against the API with an empty string[/quote][/quote]
OK. I see right there:
[quote user="From the Article"]
<cfif Trim(url.searchText) EQ <span style="color:red;">""> <!--- empty string will cause an error ---> <cfset <b>searchString="supercalifragilisticexpialidocious"> </cfif>
[/quote] [/quote]
without saying "you're a fucking idiot"
I think he was calling the API directly - so that little bit with the SearchString is on the website in the real world to avoid the issue happening [/quote]
Thanks for that. I really am fucking idiot.
Admin
(You know what would be cool, just in general? An edit button. I hear fora have those, sometimes.)
Admin
so register - then you can edit
Admin
Simply quite atrocious.
Admin
If it ain't broke, it's supercalifragilisticexpialidoscious.
Admin
Admin
Admin
Admin
[quote user="unregistered"](You know what would be cool, just in general? An edit button. I hear fora have those, sometimes.)[/quote]
so register - then you can edit[/quote] Well, dang. I tried so hard to avoid Muphry's Law, and yet let a deeper I'm-a-moron mistake slip in. Learn something every day (I only haven't ever registered because, like probably most people here, I generally post from work, which employs a stupid content-blocker that doesn't block tdwtf, but does block its forum - and the 'join' link is on the forum subdomain. That and I'm lazy, and registering requires an additional 10 seconds of work. But screw it, quota time used, registration submitted, you win. You can all proceed to not care.)
But speaking of, TRWTF is totally websense. It's hilarious what it does and doesn't block, sometimes.
Admin
I wonder how unregistered people could edit posts - based on comparing submitters IP to editters IP perhaps - or maybe just an assurance from the user (unregistered boog, say) that they really are the same unregistered boog that wrote the original post?
Admin
I also liked the perfect demonstration of Muphry's Law I just gave in the previous post, too - which, of course, was posted right before the registration went through. Awesome. Post about how people need to preview before submitting: you should really preview before submitting, yourself.
Admin
Admin
What the damn is wrong with the comments on FireFox?
Admin
Another good test case is a string containing a single (... or multiple) Unicode Byte Order Marks, which is the encoding of character 0xFEFF, a "Zero width non breaking space", that is, it has no glyph, takes up not space, and does not affect formatting; and may be stripped from the string suring processing AFTER the string is checked to not be empty.
good times.
Admin
Admin
Admin
Era legera E come un fairy E suo shoes numero nine Herring bo-ho-ho-hoxes senza to-ho-ho-hopses Sandale per Clementina si, per Clementina si, Per Clementina Sandale per Clementina Sandale per Clementine, Clementina, Clementina, Clementina. Herring boxes senza topses Sandale per Clementina, Herring boxes senza topses Sandale per Clementine, Che sciagura Clementina Che sciagura Clementina Cara Clementina cara Clementina-na-na-na-na-na-na-na.
Admin
How about Taumatawhakatangihangakoauauotamateapokaiwhenuakitanatahu
Admin
There is one...
Admin
I would have thought his selective mastery of the English language would have given that away a LONG time ago...
Admin
Admin
However, a rebel with experience would go with 'antidisestablishmentarianism'
Admin
The real WTF is that it doesn't use the ItemNotFound Boolean value.
Admin
Not if there's additional logic embedded in the search function, like setting up parts of the search results page.
Admin
Admin
Hi-ho Silver, away.
Admin
Probably because that was above their head, or they didn't want to touch more than three lines of code to fix the defect.
I've worked with people who would return an object from a GetById method regardless of whether it was found in the DB or not. They would simply add a property "IsValid", or some equally shitty named member and check that all over the place rather than checking for null.
It's amazing what you take for granted (common sense, able to dress yourself in the morning, etc.), which some people simply lack.
Admin
After eading theses comments, I'm starting to get the feeling that most developers are seriously flawed, passive aggressive losers.
Admin
The whole thing
Admin
Hey! Take that back! We're not passive-agressive...
Admin
Admin
Admin
Actually, there is merit in the idea of returning an object regardless. It all depends on your needs (or your team's needs).
TRWTF is returning null, but not checking for null before trying to use the value as an object.
Admin
Admin