To Suck or Not to Suck, That is Question for JavaScript

Page content

Introduction

I must say, JavaScript and I have had our love-hate relationship. Sometimes the reason I love it are the same reasons that I hate it:

  • Variable Declarations are not necessary
  • It does not compile

But officially, does JavaScript suck?

Why JavaScript Sucks

Fabien at Chase The Devil uses The Google Web Toolkit as his basis for claiming that it does suck:

Why would GWT be so well acclaimed if JavaScript was a good language. When you talk about GWT to someone (a developer preferably), the first reaction is often

Why JavaScript Doesn’t Suck

Now the guys over at Think Out Loud has a different idea about JavaScript. They claim that it doesn’t suck:

  1. Just because some vendors are building tools to generate javascript code doesn’t mean the language sucks. If the language really sucked these tools wouldn’t even exist. …
  2. If JavaScript was so horrible then you wouldnt find libraries like the Yahoo UI kit, Mochi, Dojo, Scriptaculous, Prototype, and the many others out there. …

Final Thoughts

When it comes to programming/scripting languages I’m an opportunist and sometimes a lemming :). The way I usually get involved with a new language is if the band wagon is already running through it. If everybody uses it there must be something that’s good about it right? The reverse of this is also true. That explains why I’m not off writing COBOL code with a fury right now. Secondly, I use whatever works in the given situation. JavaScript exists because it has its uses, simple as that. So does PHP. The problem lies in the coders not the language. Some people try to use JavaScript for things it was never intended to do and they start crying that it’s too slow and too buggy and filled with too many holes. Me, I use whatever works. If I need to write a simple script to run in a browser to do very simple things, why open up Eclipse and start coding an Applet?

Bottom line, use the tool for what it was designed for.

P.S.

I believe this is the last post of 2006. It’s been a fun year. I had many changes in my life and few for this blog. Some changes good, some changes bad. Oh well, life goes on. Enjoy 2007 people, I’m about to.

Jah Guidance.