var $=function(id){return document.getElementById(id);}

This. This is what ruined half of my day today. The person who wrote this was more clueless than a 9 year old who never had any computer experience at all. Dear person, I don’t know you, but I hate you.

The above abomination killed pretty much every single jQuery related statement in a page. I cannot imagine WHAT might have driven that particular person  to put something like that in code. Here area few possible explanations about The Person In Question:

1) TPIQ had no experience with jQuery, but was a bit adept with Javascript. “Geez Louise” TPIQ might have thought “all them scripts crashing like no tomorrow and me gots no idea why.” And he decides to fix it, probably ignoring the fact that ID based jQuery selectors follow the CSS syntax.

2) TPIQ was a Prototype user. Although, if that were the case for the above statement, someone’s mind performs some awfully big leaps of logic.

3) TPIQ just wanted to make “the god damn plugin I downloaded” to work. That would imply some knowledge of Firebug but I refuse to accept the complete absence of jQuery’s existence by anyone who knows what “a Firebug” is.

4) TPIQ was a complete newbie, he threw that fix in and suddenly, due to a f***load of scripts loading in the same page, due to some twist of nature and jQuery’s essentials (I’m guessing here, so cut me some slack) it actually worked.

 

Apart from the real cause for the existence of this bloody atrocious murdering “code-shiv’s”, this isn’t even the worst part. It also manages to be completely inelegant, since TPIQ could have simply written:

var $= document.getElementById;

 

Agreed, it would produce the same crap on the page, but at least it’d have shown some sophistication and might, perhaps, maybe a reason for its existence. Or you could simply pair it with a comment it you know and give me a wonderful ride in your mind’s distorted view of reality.

Yeah. You suck, person.

Comments (1)

  1. 19:24, 2012/11/23Elford  / Reply

    Hello There. I found your blog using google. This is a properly written content. I’ll be guaranteed to bookmark it again and come oh no- read more to your useful information and facts. Thanks for the write-up. I’ll most definitely comeback.

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Pingbacks (0)

› No pingbacks yet.

Switch to our mobile site