Jquery vs javascript?

I recently stumbled upon some javascript forums (unfortunately, the link is lost somewhere in the universe), where you can feel real hatred for jQuery because it is not ... good?

Most arguments seem to make sense actually.

Now I really like jQuery, mainly because it allows me to concentrate on the things I want to do rather than the browser inconsistencies, and this actually makes AJAXing with cool (or overused?) Effects interesting.

But if there really is something rotten in the jQuery core, I donโ€™t want to rely on it the way I really ... rely on it.

I donโ€™t want to give another argument as to which structure is the best ... but ... Which structure is the best (joke)? As an example of use, consider the small and medium network and its administration.

I'm just trying to figure out if things in some kind of structure or pure javascript with a few of my functions really really matter.

Edit:

I actually tried to have a normal objective conversation about the pros and cons:

  1. Using frames over pure JavaScript and
  2. JQuery versus others,

Since jQuery seems to be easiest to work with the fastest learning curve. However, some people simply do not understand this and think that I am starting another flame (which I am not). I actually vote to reopen this question.

I'm also really interested in:

  • Is jQuery very browser dependent sniffing? Could this be a potential problem in the future? What for?
  • I found many JS selector engines, are there any AJAX and FX libraries?
  • Is there any reason (other than browser sniffing and personal hatred of John Rezig) why jQuery is wrong?

JQuery actually, like most others, means other frameworks.

+75
javascript jquery
Feb 26 '10 at 8:51
source share
6 answers

All about performance and speed of development. Of course, if you are a good programmer and create something that really suits your needs, you can achieve better performance than if you were using the Javascript framework. But do you have time to do it all yourself?

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

Now comes the choice of the frame. For what costs, you can find it at http://ejohn.org/files/142/ . It also depends on which plugins are available and what you are going to do with them. I started using jQuery because it seemed to be supported and displayed well, although at that moment it was not the fastest. I do not regret it, but since then I have not tested anything.

+44
Feb 26 '10 at 9:03
source share

Personally, I think that you must first learn the hard way. This will make you a better programmer, and you can solve this problem when it appears. Once you can do this with pure JavaScript, using jQuery to speed up development is just an added bonus.

If you can do it hard, then you can do it easily, it doesn't work the other way around. This applies to any programming paradigm.

+30
Oct 16 '13 at 17:18
source share

Jquery, like any other good JavaScript framework, provides you with functionality independent of the browser platform that wraps up all the subtleties that you may not like or don't want to care about.

I think that using the framework is better than using pure JavaScript and doing everything from scratch if you are not using it very limitedly.

I definitely recommend jQuery!

thank

+10
Feb 26 '10 at 9:05
source share

"I actually tried to have a normal objective discussion minus 1., using a framework on top of pure javascript and 2., jquery vs. others, since jQuery is apparently the easiest way to work with the fastest learning curve."

Using any structure because you donโ€™t want to learn the main language is absolutely wrong not only for JavaScript, but for any other programming language.

"Is there any reason (besides sniffing the browser and personal" hatred ") against John Resig) why is jQuery wrong ?

Most of the hate is again due to exaggerated fanaticism, which pollutes the forums with "using jQuery" as the answer for every single JavaScript question and overuse that creates code in which simple statements like declaring a variable are executed through library calls .

However, there are also some legitimate technical issues, such as the common fault in producing illegible code and overhead. Of course, these two are compounded by the lack of developer skills, not the library itself.

+10
Aug 07 '13 at 19:24
source share
  • Does jQuery affect browser sniffing? Maybe this is a potential problem in the future? Why?

No - there is a $ .browser method, but it is deprecated and is not used in the kernel.

  • I found many JS selector engines, are there any AJAX and FX libraries?

Freights. jQuery is often chosen because it works well with AJAX and animations and is easily extensible. jQuery does not use its own selection mechanism, it uses Sizzle , an incredibly fast selector mechanism.

  • Is there any reason (besides sniffing the browser and personal โ€œhatredโ€ against John Resig) why jQuery is wrong?

No - it is fast, relatively small and easy to expand.

For me personally, itโ€™s nice to know that since browsers include more things (like class APIs) that jQuery will update to enable it, which means that my code works as fast as possible.

Read the source if you are interested, http://code.jquery.com/jquery-1.4.3.js - you will see that the functions are added first based on the best case, and gradually turns to old browsers - for example, the section of the parseJSON method from 1.4.3:

return window.JSON && window.JSON.parse ? window.JSON.parse( data ) : (new Function("return " + data))(); 

As you can see, if window.JSON exists, the browser uses its own JSON analyzer, if not, it avoids the use of eval (since otherwise minfiers will not minimize this bit) and sets up a function that returns data. This idea is to be used first modern methods, and then humiliate the old methods, it is used in the full sense that new browsers use all the functions of whiz bang without compromising compatibility with previous versions.

+8
Oct 31 '10 at 10:04
source share

JQuery VS javascript, I am completely against the OP in this matter. A comparison occurs with two similar things, but not in this case.

JQuery is Javascript. A javascript library to reduce ambiguous coding, a collection of widely used javascript functions that have proven effective in efficient and fast coding.

Javascript is the source, in fact, the scripts that the browser responds to.

+5
Oct 31 '10 at 9:46 a.m.
source share



All Articles