| « Prev | Page 1 | Page 2 | Page 3 | Page 4 | Page 5 | Page 6 | Next » |
Re: A Spoonful of Sugar
2011-03-16 11:28
•
by
iToad
(unregistered)
|
You want to be very careful saying that out loud. Do not call up that which you cannot put back down. |
Re: A Spoonful of Sugar
2011-03-16 11:28
•
by
trtrwtf
(unregistered)
|
The very definition of the phrase "trwtf" |
Re: A Spoonful of Sugar
2011-03-16 11:30
•
by
anonymous internet wanker
(unregistered)
|
|
come on, don't you love doing some on the search function? I do. It's my favorite thing, I do it all the time! :)
(well, my favorite thing besides the obvious) |
Re: A Spoonful of Sugar
2011-03-16 11:39
•
by
fwfw
(unregistered)
|
The fact that they use CF tells me that they regularly change production data by using the Edit Rows function in SSMS. |
GOD DAMMIT! |
Re: A Spoonful of Sugar
2011-03-16 11:48
•
by
Squidfood
(unregistered)
|
But is it one of your favorite strings? |
Re: A Spoonful of Sugar
2011-03-16 11:53
•
by
trtrwtf
(unregistered)
|
No, that would be "Brown paper packages tied up with %s" |
|
if comment EQ ""
cfset comment = "Chargoggagoggmanchauggagoggchaubunagungamaugg" |
Re: A Spoonful of Sugar
2011-03-16 11:57
•
by
Anonymous
(unregistered)
|
These are a few of my favorite strings. |
Re: A Spoonful of Sugar
2011-03-16 11:57
•
by
Vacaloca
(unregistered)
|
song.Dispose(); |
Nope, not even then. Perhaps if you were searching for "places that sell novelty railway platform tickets in Wales" you might get lucky, but mostly you'd get back Llanfair, Anglesey (as distinct from all the other Llanfairs around Wales). Llanfair P.G. is also acceptable but nobody calls it Llanfairpwllgwll...gogogoch any more. If you want me, I'll be with the sheep. |
|
My favorite brain melting song goes like this:
Meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow! (http://www.youtube.com/watch?v=5JuVHCJVYf4 if you don't remember or happily were never subjected to said torture.) |
Re: A Spoonful of Sugar
2011-03-16 12:22
•
by
trtrwtf
(unregistered)
|
I'll bet you will. Hey, McLeod! Get off of my ewe! |
|
Once again we get a code sample where a programmer fixes a problem by using a "magic string".
|
Re: A Spoonful of Sugar
2011-03-16 12:26
•
by
Herby
(unregistered)
|
The hills are alive with the sound of music..... Sorry, wrong Julie Andrews movie. Never [Emily Litella] mind. |
|
You want long words? Forget English and choose German:
Oberdonaudampfschifffahrtsgesellschaftskapitäswitwenrentenantragsformulartitelzeilenendbuchstabengrößenangabe. (Upper danube steam ship company captain's widow rent applicance form title line end letter size value) |
Re: A Spoonful of Sugar
2011-03-16 12:38
•
by
PedanticCurmudgeon
|
It does now. Nice work. |
|
The obvious approach to this problem is to create a thingy that responds to a search for "supercalifragilisticexpialidocious" and make sure it thoroughly insults the reader in the most vile terms possible. (Like maybe calling them a VB programmer...)
Then just sit back and wait for the complaints to pile up, forcing management to authorize fixing the actual bug instead of papering over it. If they merely change the magic word, rinse and repeat... |
Whenever I need a magic string that should never appear in real-world data, I use something like this: "~~~!!!~~!~! THIS STRING SHOULD NEVER APPEAR IN REAL-WORLD DATA AND IS USED TO MEAN insert meaning here . IF IT DOES APPEAR IN REAL-WORLD DATA, THIS APPLICATION WILL PROBABLY BREAK OR BEHAVE IN AN UNPREDICTABLE WAY ~~~~!!!!~~~~" It has the benefit of being self-documenting, and if it ever does show up in real-world data, someone is clearly messing with the application's head. |
|
I'll probably take some flak, but I can see valid reasons for doing this rather than any of the other suggestions (bypassing search, returning the user to the search page, etc).
1) Time constraints: If the dev had another 50 critical bugs to fix that day, there's no reason he should spend any more time on this bug. An if statement and a comment suffice. 2) Global search: He can't return the user to the original page. If this search appears at the top of every page, then he'd have to go through the pain of ensuring that every form in the application was correctly populated on a bad search. 3) One-off effects: If the search operation has one-off effects, then it's far easier to pass it a bad string than try to reproduce those effects outside of the search operation. Bear in mind that if the above apply, it indicates a WTF somewhere further down the line. But we knew that when we found out the search API didn't allow empty strings. Really, the best suggestion I've seen was by RobFreundlich - the actual string should be self-documenting. |
|
It would be a real WTF if the client was Disney and people were trying to find the correct spelling.
|
Wouldn't an if-statement suffice for bypassing the search? |
<cfif Trim(url.searchText) EQ ""> <!--- empty string will cause an error ---> <cfset searchString="If you are reading this, you are likely a fellow coder, or a general web geek. We have to pollute our code with this crap because the stupid fecks on the [insert team name] team at [insert company name] cant write an API worth a damn. No search string generates a 500 error from that pile of stinking mess they delivered, so instead, you get to read this."> </cfif> |
|
Mahatma Gandhi, as you know, walked barefoot most of the time, which produced an impressive set of calluses on his feet. He also ate very little, which made him rather frail and, with his odd diet, he suffered from bad breath. This made him a...
super calloused fragile mystic hexed by halitosis. |
Why would the previous developer have needed to change the underlying data access code? Was it broken? |
Re: A Spoonful of Sugar
2011-03-16 13:11
•
by
BF
(unregistered)
|
I think we can all agree that the real WTF is the brain dead .NET webservice API that they were using to do the searching. |
Does ColdFusion pay you to say that, or didn't any of the .Net shops want you after reading your resume? |
Re: A Spoonful of Sugar
2011-03-16 13:30
•
by
foo
(unregistered)
|
CJFNNCNNOLIIEHREHCDMUCDGERWP is probably a Welsh word. |
I tried that once, but it didn't work out as well as using a mirror. |
|
Although you can type it backwards, which is dociousaliexpiisticfragilcalirupus, but that's going a bit too far, don't you think?
|
|
So TRWTF is that the DAL code was off limits, and he should have used wrapper pattern? Which, in a sense, he did?
So TRWTF is that there is no RWTF? |
That isn't backwards, dude. Neither character-wise nor syllable-wise nor phonetically. |
|
Luckily, Bobx can automatically catch this exception and produce a meaningful error message in less than 20 lines of code.
|
Re: A Spoonful of Sugar
2011-03-16 13:39
•
by
hoodaticus
(unregistered)
|
Never mind. I'm a moron. I didn't realize you we're quoting the movie. |
Re: A Spoonful of Sugar
2011-03-16 13:39
•
by
The Great Lobachevsky
(unregistered)
|
|
neminem - I'm glad I'm not the only one here that appreciates Tom Lehrer.
I randomly walk around singing "per clementina si!" when the mood strikes me :) captcha: nimis |
Re: A Spoonful of Sugar
2011-03-16 13:40
•
by
Helps the Medicine Go Down
(unregistered)
|
|
Why exactly was Brian testing with an empty string, anyway? I hate it when devs do crap like that.
|
Re: A Spoonful of Sugar
2011-03-16 13:42
•
by
kastein
(unregistered)
|
Didn't you know? Microsoft is replacing Visual FoxPro with Visual ColdFusion++ .NET Live Edition if this sentence didn't give you chills, you are probably not human. |
I'm just not homosexual enough to have memorized the lyrics to every musical. Tho thorry, my apologieth. |
Oh I'm sure it worked as well as any super sophisticated SQL LIKE query would... |
Re: A Spoonful of Sugar
2011-03-16 13:45
•
by
jumentum
(unregistered)
|
Hardly could tell, from the name and the self-talk. |
|
The correct solution to this problem would have been,
|
|
I'll be in my bunk...doing some.
|
Wit Lesson #1 - before turning a phrase, it helps to understand the phrase you are turning. |
Maybe it does. And maybe the search operation starts out with if (parameter is invalid) 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? |
Re: A Spoonful of Sugar
2011-03-16 14:08
•
by
Peter
(unregistered)
|
How do you "turn" a phrase? |
That should be "cor blimey", but it's easy to see how you came to make that mistake - Dick Van Dyke does the worst cockney impression known to man... it lies somewhere between Pakistani and South African. |
Go fly a kite. |
FTFY |
Re: A Spoonful of Sugar
2011-03-16 14:18
•
by
Gunslinger
(unregistered)
|
If you were someone who used visual FoxPro, then you weren't human already. CAPTCHA: nobis - Only a nobis uses FoxPro. |
Re: A Spoonful of Sugar
2011-03-16 14:23
•
by
Lois Griffin
(unregistered)
|
God, you're dumb! Thank God for that ass! |
| « Prev | Page 1 | Page 2 | Page 3 | Page 4 | Page 5 | Page 6 | Next » |