- 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
I Agree
Admin
you done do somethin to that website with dem their code thingies that done broke somethin. i can't read dem dere previous articles this week and when i do click on this one today it brings me to a different one.
i done think this no happen if you was runnin on the cloud
Admin
SECOND!
Just playing :p.
Looks like they are introducing a new aspect of coding we never considered.
There is client side... server side... and DEVELOPER SIDE. Vastly inefficient to put too much processing on the DEVELOPER SIDE... it makes more sense to spend the exact same amount of time on the DEVELOPER SIDE forcing the client side to perform the operation.
Admin
CURSE YOU JOY!
Admin
OWWW! My brain hurts!
Admin
Uhhh... dude? You done commented out half of one post, through a second and half of the next.
Welcome to the HALL OF SHAME! Now you have to WTF your own site!
Editor:It's fixed now. And c'mon- it's hardly the first time we've screwed up the markup in an article.
Admin
I done used the links on ta top of that dere artical and it brung me round to those other articals just dandy
Admin
If programmers were perfect... this site would not be very interesting.
Admin
So this doesn't just fix the case of "page is UTF-8 but IE* or something rendered it with a Windows charset, we can't get a proper charset set in the DOCTYPE or html tag for some stupid reason (autogenerated?), and doing it in JS defers it until after the charset error caused the problem"?
Or maybe it's there because the people who wrote the pages never clean up their act, the coder got sick of manually fixing it, and for some stupid reason they won't let him automate the fix on the back end?
... Nah.
Admin
...indeed.
Admin
http://www.thedailynasaprogrammers.com/ perhaps?
Admin
Ahh if only we all lived in a perfect world. I've had to do something very similar to this since the CMS we used is locked down by the company that manages it. My agency only has access to a small piece of the content and sometimes you have to fix things outside your normal control.
Might not be the case for this bit of code, but the developer may have had some restrictions we didn't know about.
Admin
All WTFs started off as a good idea based on some constraint we don't know about. Nobody sits down and goes, "What's the worst possible way to solve this problem?" and then does that.
Admin
Admin
I am surprised that snoofle's most recent saga of the senior release manager did not get deemed the best of the sidebar.
Admin
Unfortunately, no. http://mars.jpl.nasa.gov/msp98/news/mco990930.html
Admin
How could someone spawn something like that?
Maybe it`s easier to tell the non-technical person (which has access to FTP) to just insert this "magick thing" just before </head> letters on every page than to somehow change charset in text editor (where the sourcecode looks to be perfectly OK)...
Admin
Only if there was only one language to code in.
TRWTF is <language>
Admin
Yup. I strongly suspect this is to fix a stupidity that's being imposed from elsewhere.
Admin
PROFOUND DISAGREEMENT: Contrary to popular belief, not all programmers are created equal. A part of the problem is the income and the potential to produce results while in a state of ignorance. Many feel that because what they are doing works, means they are smart enough that they need not learn anything new. Others choose to believe that if it is something they do not understand, then it is not worth knowing. Still more figure that if it isn't in one of the books they read in college, it is untested theory and they summarily reject it. I find very few programmers that can actually look at a problem and come up with an original solution.
Therefore, I argue that most WTFs come from
I suspect the ones that typically make us laugh are the bottom 3.
CAPTCHA: aptent - where threads go when they sleep
Admin
In truth, I find that old debate to be very tired.
Admin
What about that competition to make the most WTF calculator? Everypone sat down and tried to come up with the best worst solution.
Admin
Admin
Completely agree. Religious debates. I wish I had a pound for every language I had to code in through my career.
(hmmm, actually I think I would want more than that)
Admin
Not trying to gain weight here, currency... err... ahem, currently... weigh exactly how much I wish.
Damned E-BIGGOTS!!!
Admin
Don't lump the intent in with the result. The intent is to make online apps feel like windows apps, more or less. Unfortunately... every time a new gadget comes out... people have to sprinkle it all over their websites, whether it is useful or not.
Admin
Y u no ®?
Admin
Oh, fuck you and your street talk. Got a headache trying to understand what the fuck you said, and I still don't know.
Admin
TRWTF is having the browser re-parse all that HTML code even when no changes are required.
var old = $(this).html(), new = old.replace('ClientName¬ÆClientService','ClientName®ClientService'); if (old != new) $(this).html(new);
There, probably reduced the speed penalty by half.
Admin
Admin
Humility is not particularly a common component among geeks. At least not until they have been locked within a single technology for too long and find themselves job hunting, only to discover that entirely new platforms, methodologies and frameworks have fully squashed the industrial demand for what we already know. I pitty some few of my friends who still only use/know classic ASP.
Just a single word of advice to all my fellow devs out there... if you don't have a computer at home or aren't using it to try out all of the new IDEs, frameworks, libraries and technologies that follow your current technology... you may find that 10 years of experience doesn't count for much.
Admin
Admin
ummm... what?
CAPTCHA: opto - not quite optomised
Admin
I don't know - a pound of gold sounds pretty good...
Admin
They hired a new senior release manager. He got the lay of the land, then went in and tactfully felt out his boss about making changes. The boss was, as before, resistant to sudden major changes, so the guy took a less forceful - incremental changes - approach. Now, changes are budgeted and on the schedule.
Admin
What if the HTML was maintained by some pointy-haired boss who knew nothing about encoding? The work request would have come in to fix all the copyright symbols once, and they would have done the find/replace method across the site. The pointy-haired boss would happily put in more and more content with his bad encoding, and more work requests would be generated. Since developers tend to want to minimize the number of work requests, and typically don't have the political clout to have a pointy-haired boss fixed, maybe they took the only sledge-hammer they had available to it.
Just sayin.
Admin
Admin
I think VB gets ragged on the most... and though I don't use it much anymore... I think I would if they let us make custom word operators similar to what they did with terms like AndAlso and such. I would use "this" instead of "Me" for one thing... simply because every time I am forced to use VB... I keep stumbling over that distinction.
Since AndAlso is suddenly a good operator... I think I would add Aint (IsNot). Since Nothing means what it implies... we need something that references the ancillary something... I would use Shit. Instead of Return, I would use Git...
The this reference could be empty in the event that you are inside of a shared method... so you could say
if this Aint Shit then Git.
Admin
If NASA gives us a Daily WTF once every thirteen years, it would still be pretty dull.
Admin
But what if the developer knew nothing about encoding? Maybe the source files showed the registered symbol just fine... Save the .html in UTF-8, browser defaults to ISO-8859-1, and there's your "UTF error" How do you fix the source code if the source code is already correct? Indeed, you start post-processing with javascript obviously.
Using
would be cheating of course.Admin
while it isn't required per se, being a complete dipshit also helps.
Admin
Admin
sheeeesh! would you americans get with the metric system!
Admin
Don't ask why. We don't like questions.
Admin
So how exactly do you profoundly disagree with the post you quoted? The 6 reasons you listed can easily be categorized as "some constraint". You say you disagree just because you like to have other people think you have an original idea, when in fact you are just parroting what Remy already stated, but in a less concise and more pompous manner.
Admin
At least half of the WTFs in this site are simply people who didn't know there already was a simple way to do X, so they built their own 5000-line bug-ridden solution.
Admin
I ALWAYS program in English, no matter what technology I use....so I don't understand this talk of other languages
Admin
Admin
Admin
I suspect the whole problem can be summed up quite easily in two short sentences:
"Grep? What's that?"