Should I use a javascript library?

February 11th, 2008   Filed Under Javascript, Thinking Out Loud  

Someone asked me this question last week at my workplace. And here is what I told him:

I was evaluating jQuery for using in our heavy UI centric projects. Prior to this I have also used YUI in one of our projects. Everything seems to be fine as one great saint in West Bengal told “Joto Mot … Toto Poth” meaning “There are as numbers of ways as opinions” for anything…

I know that I too have created lot many library items for the sake of convenience while development. But what I didn’t like about jQuery was the abstraction from the real syntaxes. I am worried about the new people who come and start using this newly innovated language and who have not understood the javascript from the basics.

In this regard, I would vote YUI which has a reasonable, proper and accurate reasons for designing the UI library, plus it does not ever take you to the world of Utopia while coding.

It is very good to be tool handy but I don’t like going the Microsoft way of development. Yes, it is open-source, lets us write lesser code. But what is it bringing for the newbies? Only headaches while debugging the script. The only best debugger what I found till date is firebug which cannot support this additionally innovated language properly.

I don’t know whether I should use these 3rd party libraries or not. jQuery also supports plugins which in turn I think definitely increases the count of bytes for your pages, accepting the fact that it is the most shrinked in comparison to all the other available libraries, known to me.

So if someone asks me should I go for any js libraries, I say definitely if you know advanced javascript techniques properly then you can always go for it. But if you are a newbie … just grow up properly.

Being a developer, it is our sole responsibility to deliver the best of our knowledge. And the fundas should be clear.


Comments

Leave a Reply