jQuery or not jQuery, that's the question! It's on second floor in ur pyramid, and you say we should avoid it. I think if someone never used jQuery (or lodash), it's better to learn ES6/7 (or TypeScript) instead, new stuff in JS are cool, but there are still missing pieces, small things which libraries do better, so if they are already in your toolbox, don't throw them away.
jQuery absolutely has its uses - however, it's only sugarcoating base JavaScript. That's why I think it's more important to focus on the basics first, but there's nothing wrong with using it if the situation calls for it.
Self-taught designer, developer, and musician. JS, CSS, React, Next, Vue, Node, and much more. Studying computer information systems at Mississippi College.
But there's no reason to load all of jQuery anymore if you can just use ES6 JavaScript or Typescript. Using $('#el') is just a sugarcoating of document.querySelector, so really jQuery just adds bloat to a site unless you're using plugins.
That's a good point and I agree with you. It can still be useful to know as you may get dropped into a project that uses jQuery and you need to be able to work with it.
That said, jQuery seems to have been phased out a lot in general recently.
Self-taught designer, developer, and musician. JS, CSS, React, Next, Vue, Node, and much more. Studying computer information systems at Mississippi College.
That's very true - and jQuery is also (unfortunately) still used as a base for Wordpress sites which run more than half the Internet. As ES6 gets even closer to 99% browser support globally, I'm hoping that we'll see the complete eradication of jQuery.
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
jQuery or not jQuery, that's the question! It's on second floor in ur pyramid, and you say we should avoid it. I think if someone never used jQuery (or lodash), it's better to learn ES6/7 (or TypeScript) instead, new stuff in JS are cool, but there are still missing pieces, small things which libraries do better, so if they are already in your toolbox, don't throw them away.
jQuery absolutely has its uses - however, it's only sugarcoating base JavaScript. That's why I think it's more important to focus on the basics first, but there's nothing wrong with using it if the situation calls for it.
But there's no reason to load all of jQuery anymore if you can just use ES6 JavaScript or Typescript. Using $('#el') is just a sugarcoating of document.querySelector, so really jQuery just adds bloat to a site unless you're using plugins.
That's a good point and I agree with you. It can still be useful to know as you may get dropped into a project that uses jQuery and you need to be able to work with it.
That said, jQuery seems to have been phased out a lot in general recently.
That's very true - and jQuery is also (unfortunately) still used as a base for Wordpress sites which run more than half the Internet. As ES6 gets even closer to 99% browser support globally, I'm hoping that we'll see the complete eradication of jQuery.