October 31, 2010

jQuery vs. javascript?

Question by Adam Kiss

I recently stumbled upon some javascript forums (sadly, link is lost somewhere in the universe), where you could feel real hate against jQuery for not being… any good?

Most arguments seem to make sense actually.

Now, I really like jQuery, mostly for letting me concentrate on things I want to do rather on browser inconsistencies and it actually makes AJAXing with cool (or overused?) effects fun.

But if really is something rotten in the core of jQuery, I don’t want to rely on it the way I actually… rely on it.

I don’t want to start yet another argument over which framework is the best… but… Which framework is the best (joke)? As a case usage, think about small to medium web and it’s administration.

I’m just trying to figure out, if stuff in some framework or pure javascript with few mine functions really makes difference.

Edit:

I actually tried to had a normal objective discusssion over pros and cons of 1., using framework over pure javascript and 2., jquery vs. others, since jQuery seems to be easiest to work with with quickest learning curve. However, some people just don’t understand it and think that I’m starting yet another flame (what I am not). I am actually voting to reopen this question.

Also I’m really interested in:

  • Does jQuery heavily rely on browser sniffing? Could be that potential problem in future? Why?
  • I found plenty JS-selector engines, are there any AJAX and FX libraries?
  • Is there any reason (besides browser sniffing and personal “hate” against John Resig) why jQuery is wrong?

jQuery actually, as most used, stands for other frameworks also.

Answer by Xr.

It’s all about performance and development speed. Of course, if you are a good programmer and design something that is really tailored to your needs, you might achieve better performance that if you had used a Javascript framework. But do you have the time to do it all by yourself?

My personal opinion is that Javascript is incredibly useful and overused, but that if you really need it, a framework is the way to go.

Now comes the choice of the framework. For what benchmarks are worth, you can find one at http://ejohn.org/files/142/ . It also depends on which plugins are available and what you intend to do with them. I started using jQuery because it seemed to be maintained and well featured, even though it wasn’t the fastest at that moment. I do not regret it but I didn’t test anything else since then.

Answer by Starx

Jquery VS javascript, I am completely against the OP in this question. Comparison happens with two similar things, not in such case.

Jquery is Javascript. A javascript library to reduce vague coding, collection commonly used javascript functions which has proven to help in efficient and fast coding.

Javascript is the source, the actual scripts that browser responds to.

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!