2
d3vcho
7y

I'm starting to go deeper with JavaScript and jQuery. What do you think of jQuery? Any advices or recommendations?

Comments
  • 8
    jQuery has no future...here, I said it
  • 0
    @tambo Can you please explain why?
  • 1
    @d3vcho main reason for me: jQuery can't handle shadow dom well.

    also, IE compatibility got less important.

    And some ideological reasons, which are obviously not important
  • 2
    plus, 80+kb for jQuery is in many cases just too much to justify...

    also, you don't learn JS, you learn jQuery, which will fuck you up at some point
  • 0
    @tambo Actually I'm learning both, some of the online courses I'm at, include JavaScript and jQuery
  • 2
    The most important thing is to learn where to use one or the other. I've seen top many examples over the years of people using jQuery unnecessarily when js would have been fine. Don't add unnecessary overhead to your project.
  • 1
    I actually prefer using Vanilla JS whenever I can. Agreed that it's a little more verbose, but it's still more efficient than including a library for just 1-2 functions slowing down load time. Also, most developers who start with jQuery become completely dependent on it, since it's really non intuitive to have an if else statement than to have a toggle class. I think that's also harmful since jQuery is becoming almost absolute.
  • 0
    I'd say that jQuery is used on a vast majority of sites, so being familiar with it is almost a necessity. I agree with all the common complaints: it's large if you're only using one or two things, IE is up to speed (kinda) so it's not as necessary, it can add overhead when vanilla js works just as well, among others. That said, look at job postings. There's a ton out there with jQuery experience either necessary or a plus. Knowing it can get your foot in a lot of doors.
Add Comment