WalaWiki content from p1k3.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

22 lines
1.5 KiB

<[Brennen]> WareLogging. I still hate JavaScript.
All right, so it's 2006 and a relatively stable set of relatively decent browsers is letting people prove (GoogleMail, GoogleMaps, Firefox, even Wikipedia) that in-browser scripting can be really useful. Nevermind the conceptual desirability or not of munging the application/document thing like this - it's here, and it's probably here to stay. I can deal with that. Hell, I ''like'' gmail. It's probably the best mail app I've used outside of Pine or mutt.
But I still hate Javascript almost everywhere I encounter it. It lets stupid &/or badly educated coders do superficially clever things. At times it seems almost designed to encourage this.
The best example is probably the replacing of this:
<a href="http://foo.bar/document">a foo document</a>
With something like this:
<a href="javascript:void1();"
onclick="Lvl_openWin('document',
'dalia','700','600','0','0','0',
'scrollbars=yes,width=700,height=600')">a foo document</a>
The bloat and ugliness is self evident, but it's the staggering pointlessness of it all that gets to me: It serves entirely to replace arguably the ''most basic feature of HTML'' with a less functional, more annoying approximation which is guaranteed to fail in some browsers, reduce visibility in search engines, and decrease the useful lifespan of the code.
I see this everywhere. If you are producing code for the web, don't do this. Or anything like it. Ever. It is stupid, stupid, ''stupid''.
Thank you.