• m (unregistered)

    _comment.innerHTML = '<blink>frist</blink>'

  • (nodebb)

    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....

  • (nodebb) in reply to Rick

    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.

  • Duke of New York (unregistered)

    I notice the "popular articles" sidebar currently has an entry on neural nets. Recommended reading for the AI craze.

  • Sauron (unregistered)


  • LZ79LRU (unregistered) in reply to m

    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.

  • Anonymous') OR 1=1; DROP TABLE wtf; -- (unregistered)

    offall() should be renamed to either offal (the edible organs, or organ parts, of a butchered animal; organ meat) or awful.

  • B'Elanna Torres (unregistered)

    The inner HTML of a targ! Qapla'!

  • NoLand (unregistered)

    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).

  • NoLand (unregistered)

    PS: So the real WTF is that it's not:

    var _targ;
    if (document.layers) _targ = document.layers[menu].document; //NS4
    else if (document.getElementById) _targ = document.getElementById(menu); // fancy FF 0.4
    else  if (document.all) _targ  = document.all[menu] // IE4
    if (_targ) __targ.innerHTML = '…';
  • Klimax (unregistered) in reply to Rick

    That's ultra-low bar to clear...

  • (nodebb) in reply to Duke of New York

    No Quack.

  • Steve (unregistered) in reply to Rick

    Even Klingon is more readable than APL.

  • Officer Johnny Holzkopf (unregistered)

    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.

  • xtal256 (unregistered) in reply to Officer Johnny Holzkopf

    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.

  • (nodebb)

    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.

  • RLB (unregistered)

    Someone clearly grew up on Visual Basic.

  • LZ79LRU (unregistered) in reply to Ralf

    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.

  • WTFGuy (unregistered)

    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.

  • (nodebb) in reply to Anonymous') OR 1=1; DROP TABLE wtf; --

    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".

  • American Webs Master (unregistered)
    Comment held for moderation.
  • (nodebb) in reply to zomgwtf

    Either that or mobsters.

Leave a comment on “Roll On Menu”

Log In or post as a guest

Replying to comment #:

« Return to Article