@@uncertaintytoworldpeace3650 jQuery UI was the first prolific component library for the web and its datepicker was the golden standard for its time. jQuery Validation was the go-to option for user-frienedly form validation whether purely client side or via ajax. A lot of what we now have in native browser components required a jQuery plugin back in the day.
I think addEventListener returns undefined, and to actually remove listener you need to do something like function handle(e) {} element.addEventListener("click", handle) And then element.removeEventListener("click", handle)
Jquery is still insanely good and useful because of big community, TONS of plugins and libs based on it and some cool easy features like :contains, ajax etc.
Pretty much the whole time you could replace jquery with that plain js... jquery still resulted in simpler and more readable code and handled some compatibility details so you dont have to.
jQuery wins when traversing the DOM especially nested deep. Haven't used jQuery for like 3 years now. Moved to Vue and write Modern JavaScript instead.
Skimming through jQuery's source code gave me a good impression of how fragmented and immature the frontend ecosystem was at the time. Borderline angry comments about weird workarounds they had to come up with for old or exotic browsers and stupid vendor prefixes
I don't think Vanilla JS is simpler than jQuery. If you're considering replacing jQuery with another library, I believe that using a front-end framework like React or Vue would be the best choice
IE support is a thing for some use cases. I work for Meta-Shopsoftware and we supported IE for a long time, since shopping can be done on nearly every PC, even if its 20 years old
Jquery is still insanely good and useful because of big community and TONS of plugins and libs based on it. you "joke" mostly mean you just never used it or dont even code any frontends
@@yalmeme its the opposite. I work at frontends the whole day, therefore I know that JQuery is very replacable overhead and a thing of the past. Every dependency you can get rid if is a good one. JQuery definitely is one of those.
@@yalmeme depends on the case. Im working on shopsoftware, in our storefront we use bootstrap and therefore mostly vanillaJS. In our administration, we use VueJS, where any classic form of querySelector is the wrong approach anyway.
There is no such value/ Maybe you ment visibility: hidden? Anyway, they are for absolutely different usecases. By the way, you can use element.hidden = true if you add [hidden] { display: none !important } to css (by default this styles goes without important).
Never been a fan of what is ultimately bloated code because you need a dependency wrapper that is simply parsing itself to code you can do with vanilla. I am glad the jQuery era is over. Hated it a decade ago, still do. Same is gonna happen to Tailwind and all these other libraries I guess. But sadly I will assume they'll get replaced with other new and shiny, popular, wrappers instead of people moving over to vanilla and learning how things work. Comments on a vanilla tutorial on UA-cam: "How do I do this in React?"
Hands down, jQuery was the GOAT of its time, but to be real, the true purpose of it is no longer relevant today. Web APIs and JS on the whole have largely standardized, and the things that aren't, are too new for jQuery. Some conventions may be more comfortable doing it the jQuery way (because it's familiar), but it's easy enough to get used to the modern means of doing those things with some practice. Unless you're still supporting an old project that uses jQuery and aren't able to migrate it to a newer codebase, I don't believe there's any *good* argument for using jQuery today other than just personal preference
jQuery was the king in it's time. Awesome libraries were built with jQuery.
Okay? Name one.
I think it's fair to say that many browser APIs were shaped by popular jQuery conventions.
@@uncertaintytoworldpeace3650 jQuery UI was the first prolific component library for the web and its datepicker was the golden standard for its time. jQuery Validation was the go-to option for user-frienedly form validation whether purely client side or via ajax. A lot of what we now have in native browser components required a jQuery plugin back in the day.
I think addEventListener returns undefined, and to actually remove listener you need to do something like
function handle(e) {}
element.addEventListener("click", handle)
And then
element.removeEventListener("click", handle)
I thought for a second when watching the video i had somehow been doing this wrong forever.
let handle;
target.addEventListener(eventType, handle = function(event) { ... });
target.removeEventListener(eventType, handle);
Jquery is still insanely good and useful because of big community, TONS of plugins and libs based on it and some cool easy features like :contains, ajax etc.
Pretty much the whole time you could replace jquery with that plain js... jquery still resulted in simpler and more readable code and handled some compatibility details so you dont have to.
Vue replaced jQuery for me, but now Svelte replaced Vue for me.
Why did u prefer svelte over vue?
Petite-Vue to be specific
To effectively use libraries such as jQuery or React, it is important to first learn the language and have a solid understanding of its fundamentals.
You can do all those stuff in a neat way using JQ..
I won't mind including it in my code it's not of a big deal though
jQuery wins when traversing the DOM especially nested deep. Haven't used jQuery for like 3 years now. Moved to Vue and write Modern JavaScript instead.
Woah another Vue developer ❤
Day to day I code in Vue + Laravel. Am a full-stack dev.
Oh, sorry, I didn't see about Laravel (PHP). Yes, you are really far from modern backend and frontend development tools.
@@seniorcside1881what? PHP is literally still used for webdev till today even more than python.
@@seniorcside1881🤡
After few years with TS, React, I avoid JQuery wherever
Skimming through jQuery's source code gave me a good impression of how fragmented and immature the frontend ecosystem was at the time. Borderline angry comments about weird workarounds they had to come up with for old or exotic browsers and stupid vendor prefixes
Me who has been using React and Vue exclusively for the past 5 years: huh, interesting.
What about the animation that jQuery provides, it's comparatively easy
I don't think Vanilla JS is simpler than jQuery. If you're considering replacing jQuery with another library, I believe that using a front-end framework like React or Vue would be the best choice
someone that is still writing jquery will still be talking about IE support xD
IE support is a thing for some use cases. I work for Meta-Shopsoftware and we supported IE for a long time, since shopping can be done on nearly every PC, even if its 20 years old
Jquery is still insanely good and useful because of big community and TONS of plugins and libs based on it.
you "joke" mostly mean you just never used it or dont even code any frontends
@@yalmeme its the opposite. I work at frontends the whole day, therefore I know that JQuery is very replacable overhead and a thing of the past. Every dependency you can get rid if is a good one. JQuery definitely is one of those.
@@YamiSuzume so, what you are using instead? vanilla js?
@@yalmeme depends on the case. Im working on shopsoftware, in our storefront we use bootstrap and therefore mostly vanillaJS. In our administration, we use VueJS, where any classic form of querySelector is the wrong approach anyway.
This dude just taught us JQuery haha. Now let’s just add all those methods to the “element” element so we can use fakeQuery instead 😂
but JQuery is based on this principle. They just make it shorter.
In fact I would argue that querySelector is the basis of JQuery
Jquery still alive and kicking my friend
if for nothing, Jquery is a must for AJAX
Well, no. Not these days.
@@YamiSuzume you are telling me you do AJAX requests without jquery? you are a mad man
@@Sway55 Why should I? We aren't in the early 2000's, so it's no problem. There's axios or the fetch API for example
Thanks for making this video
10 years ago ❤
True since 2017.
It is just faster to type out $() in stead of document.querySelector() even with autocomplete
Jquery is the king
display = none causes layout shift, you can use display = invisible to avoid layoutshift
There is no such value/ Maybe you ment visibility: hidden?
Anyway, they are for absolutely different usecases.
By the way, you can use element.hidden = true if you add [hidden] { display: none !important } to css (by default this styles goes without important).
Who unironically still uses jQuery in 2023?
I've visited many websites where I see 90kb of JQuery running down the network. (Seriously, thats bigger than React & Vue COMBINED)
How about ajax ? Do you have easy way in js
Only reason I use jquery
I started using svelte, which replaced jQuery for me
No more jQuery.
i like js but is there any method to send request whithout submit button in js 🤔🤔?. jQuery can do it .
element.classList replaces .addClass / .removeClass and element.dataset replaces .data
I dunno, I think every case you described was better done with JQ
None of these are new JS features
What about jQuery datatables?
Might? Seriously?
alpine js replaced jQuery for me. No need Vue, React or other big framework for simple job
pretty sure the part about removing event listeners is wrong
It is, i wrote the correct way in other comment
@@ky3ow or you can pass a signal from an abort controller when you add the event listener, and later call the abort method of the controller
Nothing about that remove event listener part was right at all
If you still use jQuery you don’t know JavaScript
Is jquery a framework or a language?
Neither.....it's primarily a dom manipulation library ....
It makes writing javascript easy, has poly fills, supports almost all the browsers etc
I've never seen anyone using jquery in 7 years. What's next, you might not need a horse to move around?
InnerHtml is good?? What im watching in 20223
If it works.... lol
Never been a fan of what is ultimately bloated code because you need a dependency wrapper that is simply parsing itself to code you can do with vanilla. I am glad the jQuery era is over. Hated it a decade ago, still do. Same is gonna happen to Tailwind and all these other libraries I guess. But sadly I will assume they'll get replaced with other new and shiny, popular, wrappers instead of people moving over to vanilla and learning how things work. Comments on a vanilla tutorial on UA-cam: "How do I do this in React?"
besss
"Might not need". That's implying there's a possibility you do.
Hasn't been needed for like 10 years by now.
If I ever get into a job and they want me to use jQuery I quit.
What about hide(ms) ?
Or add event for multiple elements?
js can go ugly sometimes in things jquery still handles pretty well
Agreed, jQuery is still a beast when it comes to transitions, too
[HTMLNodeList].forEach( (node) => node.addEventListener(e, fn))
@@lautarorocha678
Correct and we need to do Array.from(HTMLNodeList).forEach as it's not a type of Array
You almost never need to subscribe on several elements. Use event bubbling instead.
@@QwDragon I think you need it very often, adding events on every child of a list it's something very common
waiiiit.. people still use jquery???
i stopped using it since 2017~
vanilla still doesn't have :contains so I'll be using jquery
Back to the Roots!
jquery is for old people who are not willing to learn modern JS
What its with ajax? In plain js this is stupid xD
🔥🔥🔥🔥🎉
JQuery is for the weak! ...or just lazy 😅
Hands down, jQuery was the GOAT of its time, but to be real, the true purpose of it is no longer relevant today. Web APIs and JS on the whole have largely standardized, and the things that aren't, are too new for jQuery. Some conventions may be more comfortable doing it the jQuery way (because it's familiar), but it's easy enough to get used to the modern means of doing those things with some practice.
Unless you're still supporting an old project that uses jQuery and aren't able to migrate it to a newer codebase, I don't believe there's any *good* argument for using jQuery today other than just personal preference
2023, man use Jquery and Vanilla js.
It's like seeing a dinosaur 😂
have you lost your mind? do not use or teach this anymore, it is very bad for performance to use jquery
Why is it bad for performance? jQuery is lighter then react and vue
Jquery 🤢🤮
Vanilla Js 🥹🥹❤
Who uses jQuery anymore??? Good lord