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.
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.
– Jéf Bueno
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. TheES6
brought a lot of interesting stuff, CSS3 has evolved a lot and since they are native, it makes your site faster. Ideally you will learnVanillaJS
not to be so depends on a framework– Valdeir Psr
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.– Oralista de Sistemas
@Could Renan name any? About "Thousands".
– Jean Michell
@Angular jeanmichell and derivatives, for example.
– Oralista de Sistemas
@Renan The very
AngularJs
usesjQuery
--> https://docs.angularjs.org/partials/api/ng/function/angular.element.html– Valdeir Psr
@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.
– Oralista de Sistemas
@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."
– Oralista de Sistemas