Why is jQuery becoming obsolete?

Asked

Viewed 1,094 times

8

More and more, I find articles (in English or in Portuguese) that speak about it... I do wrong for continuing to use the jQuery on websites? What’s wrong with it? Is there any other framework (or lib) that I should learn to let him go? This website shows that I may not need to use jQuery in the projects But... why should I really?

  • 2

    If pure JS does everything jQuery does with the same amount of code (or similar) jQuery only has the function to add a KB’s in your project and a dollar sign in your code.

  • 1

    jQuery brings many possibilities, an easy way to use javascript, but it brings a lot of "junk", a lot of the things you won’t use and it has a cost, performance. The ES6 brought a lot of interesting stuff, CSS3 has evolved a lot and since they are native, it makes your site faster. Ideally you will learn VanillaJS not to be so depends on a framework

  • 1

    Eu faço mal por continuar a utilizar o jQuery nos websites? Depends. O que tem de errado com ele? Misuse by many people. Existe algum outro framework (ou lib) que eu deva aprender para deixá-lo de lado?Thousands. por que eu realmente deveria? Reuso is your friend.

  • @Could Renan name any? About "Thousands".

  • @Angular jeanmichell and derivatives, for example.

  • 1

    @Renan The very AngularJs uses jQuery --> https://docs.angularjs.org/partials/api/ng/function/angular.element.html

  • @Valdeirpsr the use of jQuery is optional with Angular and Angular 2 as far as I know. I don’t know the specifics of each version, but I believe that initially the idea was to use Jqlite instead of jQuery.

  • 1

    @Valdeirpsr from the very link you used: "If jQuery is available, angular.element is an alias for the jQuery Function. If jQuery is not available, angular.element delegates to Angular’s built-in subset of jQuery, called "jQuery lite" or jqLite."

Show 3 more comments

1 answer

12


jQuery is becoming obsolete?

Not, jQuery is very good at what he set out to do which is to manipulate the DOM, it is logical that with JavaScript it is possible to do this, but we must take into account all kinds of developer, the syntax of jQuery is much simpler for those who are starting.

But there are so many new frameworks, why keep using?

Really the MVC frameworks lead has been growing a lot, and they are great with jQuery, it can be used in directives, components, and depending on the framework in the entire application and even if you don’t want to use it, it will hardly end a project with at least one component that doesn’t have the jQuery dependency.

Organizing

I think a good example is the network Stack Exchange, recently discovered that uses jQuery in all, even so it is still organized and I believe that reuse is also no problem.

Marketplace

The market still relies heavily on jQuery, do not get carried away by any graphic on the internet.

  • Thank you. Very enlightening.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.