- 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
_comment.innerHTML = '<blink>frist</blink>'
Admin
Last year I added a custom report to Linux's logwatch using its default language, Perl. Except for the REGEX, it reads just fine. Perl is a much more readable language than APL. Just saying....
Admin
I must admit that when I saw the comment about write-only languages, my first thought was A Programming Language, but it's all Greek to me.
Admin
I notice the "popular articles" sidebar currently has an entry on neural nets. Recommended reading for the AI craze.
Admin
<marquee>WTF?</marquee>
Admin
By god that's a blast from the past. Anyone else remember <blink> and <marquee> fondly? And of course the beauty that was <bgsound>. I miss the good old days.
Admin
offall()
should be renamed to eitheroffal
(the edible organs, or organ parts, of a butchered animal; organ meat) orawful
.Admin
The inner HTML of a targ! Qapla'!
Admin
Looks fine to me – provided, it's code from the last century, as in DHTML (when HTMLElement.innerHTML was about the only cross-browser way to do it).
Admin
PS: So the real WTF is that it's not:
Admin
That's ultra-low bar to clear...
Admin
No Quack.
Admin
Even Klingon is more readable than APL.
Admin
Why name things when you have [0-9]? Maybe "m1" is "menu 1", and "m2i1c" is "menu 2 item 1 caption" (or maybe "color"?), "m2g" could be "menu 2 golor", or it refers to language selection "c" for "common" (which is English) and "g" for "go away" which is any foreign language.
Admin
That was my guess, except I think "c" could be for "checkbox" (i.e. a menu that has a checkbox) and "g" could be for "graphic" (i.e. the icon shown to the left of the text). The x,y positions in the setup function are a clue as they indicate the "c" and "g" elements are slightly to the left of the main menu item element.
It's fun to try and guess, but it pisses me off whenever I see it as it takes so little effort to just name things in full rather than abbreviated.
Admin
So clearly "m2i1" means menu 2, item 1, etc. "m2i1c" is probably a checkmark. And better keep these IDs short, as we'll see below.
As for one line of HTML, well it's all known that new lines and carriage return characters take a ton of space, and they probably slow down the parser too! That's why the menu IDs need to be short too! We're making the web site so much faster by minimizing file size thus loading time!
Also, we better optimize preemptively, because we all know that's way better.
It's all about efficiency, you know!
Really, I fail to see any WTF here.
Admin
Someone clearly grew up on Visual Basic.
Admin
It's probably just to ensure compliance with text editing standards when it comes to newlines. You newer know what OS the next developer will be working on. So the \n vs \r\n vs \r debate might trip them up. Same with tabs vs spaces. Better to just do none of those and keep things simple.
Admin
I'm going to bet the "menu 2 item 1 caption" naming convention got going about the twelfth time all the html elements had been given IDs describing their business function, then the business totally changed its mind on how all the functionality was to be structured. Rendering every one of the "logical" names wrong.
Admin
When I saw that I wondered if the code was outsourced to developers in India, the "off the X" construction is familiar, e.g. "off the light" meaning "could you turn off the light".
Admin
Either that or mobsters.