63

worst advice:
"Use only jQuery, js is shit"
"Use only js, jQuery is shit"

Dude, use whatever dafuq you want, both have their pros and cons..

Comments
  • 16
    I wonder... How can I use jQuery without js? :D
  • 9
    Dont use jQuery if you dont know JS. If you know JS you know that you need jQuery not that often.
  • 8
    This makes no sense what so ever! jQuery IS JS!
  • 5
    jQuery is nothing more than predefined JS functions. jQuery IS JS. I get both sides, jQuery can definitely save a lot of time and energy through prewritten code, but at the same time if you don't know how jQuery functions process arguments and return values then you can get yourself in trouble. Understanding core JS is waaaaaaay more important than being familiar with any given library. That's the skill that will help you find out why jQuery isn't doing what you want it to.
  • 4
    @Crazed I think the argument against jquery is that it's a big library for relatively simple operations.

    In pure JS it's all bit more verbose (but not that difficult). For a simple app, you could easily define a few jquery-like helper functions in a very light library as you go.

    If you want something more full featured, you might as well use react/vue/angular. Jquery is not great at keeping in sync with the state of your document.
  • 2
    @bittersweet true, there's also the problem with a lot of people including the full jQuery library to use... 2 functions.
  • 2
    @bittersweet I totally agree. Except for the part "jQuery is not great at..." I'd say "jQuery really sucks at..." instead.
  • 3
    If you want your website to work in the past, by all means use jQuery. Otherwise just save a bunch of kBs and use vanilla.
  • 2
    @bittersweet perfect response.
  • 1
    Your rant should be:
    Use jQuery over PURE javascript because for the fuck sake, jQuery is Javascript
Add Comment