24
ceee
7y

Is it important to be proficient in vanilla JavaScript? Or Is jQuery enough?

Comments
  • 13
    jQuery is for quickly getting your static resources into manipulatable states. That manipulation requires vanilla js, or at least it ought to be understood the shortcut that jQuery is providing.

    I am oversimplifying things, but I highly recommend understanding plain js before using jQuery, and also understanding that web development is thankless ever-changing bullshit.
  • 2
    @gorsamp thanks for the suggestions 👍
  • 5
    jQuery will get you pretty far but be careful. Rely on it too much and you'll be doing yourself a disservice and learn a lot of bad habits.

    I would learn as much vanilla JS (ES5/6) as you can. Once you understand what's going on under the hood then take advantage of what jQuery can do for you.

    Besides, if you only rely on jQuery you'll never know what the dollar sign really means... 😉
  • 2
    It's always important to know the base language tho
  • 4
    Is this an actual question? Wtf is going on?

    "How do i program without knowing how to program" is literally what you just asked.

    If you are actually asking if you should learn just a library and not the damn language its written in then you should just quit now because theres so much more you need to learn.

    imad.
  • 4
    jQuery is a relic of the past. Currently, everything can be done using only vanilla JS.
  • 2
    You most definitely should know the base language. If you are doing web development then JS is an absolute must and there is no way around it. I would not call JQuery a relic or something that you shouldn't use since for most animations and what not chances are that you will be well sorted with jquery. But do learn the JS language if you want to not feel completely lost at all times :) if you are a newcommer to JS then you are certainly in a great time since the language is going through a renaissance of sorts, but be wary since it is much harder to master than what it looks like. Way harder to master actually but it will be a nice addition to your toolbelt. Just have fun!
  • 1
    @mlask except parsing dates. Chrome and FF are happy to eat a dmY string as new Date(date.split("-").reverse()) but not IE nor Edge, safari we don't talk about it...

    But yeah
  • 2
    I used to use jQuery all the time in the past. But when I heard about ES6 something has changed. Back then I didn't know how to use vanilla JS, now I don't know how to use jQuery. And I am happy, coz jQuery sucks nowadays.
  • 5
    Be language agnostic... Be framework agnostic. Understand the core concepts, and then use what solves your problem.
  • 3
    @mlask currently? No. Everything jQuery could do could be done using plain js. That's what jQuery did behind the scenes after all.
    Could be done almost as easy in plain? Maybe.
  • 2
    All jQuery will get you, is spaghetti. You can cook spaghetti, im sure you dont need jQuery for that :)
    Just learn plain, vanilla JS, learn how to apply ES6 rules, learn about Object-Oriented Programming and then about Functional Programming. Then finally learn about JS design patterns, and you'll be ready to take on any web framwork (every two weeks lol)
  • 1
    jQuery can do anything you want.
    You can learn vanilla js later.
  • 2
    @Vip3rDev haha thanks ✌
  • 1
    Yes. Javascript is the language. jQuery is just the tool.
  • 0
    @Kimmax - haha, yeah, I was going to say the same thing.

    And yes, know the base. Less dependencies is always better. jQuery is still good to prototype something, but it's not something you should rely on.
  • 1
    @Phlisg there are better libraries for date/time manipulation than jQuery ;)
  • 1
    Please vanilla JS! You'll see that you can do a lot that jquery can do very easily, without using jquery of course.
  • 0
    @Ritzing
    No, its not a genuie question.

    I think its a dumb question that is attracting dumb answers like @dgfz 's

    You'll be fucked if any unexpected errors happen because you won't know how to fix them or search for them.
  • 0
    @mlask not using jQuery at all, pretty much hate it actually :)
  • 1
    If you want to use frontend libraries such as React, Vue, Angular etc you must know Vanilla JS and the new ES6 Syntax. You can manage without ES6, but Learning that will make your life a lot easier.
    But I've still seen people use only jQuery to do a lot of frontend work. But I recommend ES6 in order to stay relevant in the market.
  • 1
    @D--M pfff right.

    This is the modern version of "better learn C before learing high level languages".

    Why spend time learning vanilla js when 90% of the time you go for a jquery plugin anyway.
  • 0
    @dgfz
    ... I hope your trolling me.
  • 1
    @D--M
    Im not.
    Maybe I'm a bit biased because I did a lot of work with jQuery before I "learned" vanilla js. For someone starting out in a language, I think it's more productive to just use the available tools to get things done fast. They can always learn the more advanced stuff later on.

    Maybe the other way might be better. I donno. 🙂
  • 0
    Vanilla Javascript is love <3 but jquery is used if you want to reduce code size !!
  • 1
    Vanilla Javascript is love <3 but jquery is used if you want to reduce code size !!
  • 2
    @sagarpreet ahahahahaha i know 😃
Add Comment