Hacker News new | past | comments | ask | show | jobs | submit login

> luckily it's not needed for most modern web projects

Alright, technically it's not 'needed' for any web projects. But it sure can help in a lot of ways on a lot of projects.




> But it sure can help in a lot of ways on a lot of projects.

On modern browsers? Can you give me an example?


Three ways it can help:

* A lot of plugins/libraries require jQuery, so by using jQuery you can use those plugins.

* It's easier to hire junior devs that can write good enough jQuery, compared to native JavaScript.

* As a very mature library, there's lots of documentation out there for standardising the way you do things. This makes it easier for other devs to pick up your work.


> A lot of plugins/libraries require jQuery, so by using jQuery you can use those plugins.

I'm seeing more and more mature "Vanilla JS" libraries for common tasks I used to use jQuery plugins for. But yes, if you must have some plugin, then you have to use jQuery. In that case, it's probably not worth the time to re-write the plugin in Vanilla js unless you have some specific bandwidth constraints among your users.

> It's easier to hire junior devs that can write good enough jQuery, compared to native JavaScript.

Sadly, you're probably right about this. I'm a little uncomfortable with the term "native" JavaScript since that makes some devs think it's some kind of OS hacker-level of difficulty, when in fact, most jQuery equivalents in modern JS are quite similar to...jQuery.

> As a very mature library, there's lots of documentation out there for standardising the way you do things. This makes it easier for other devs to pick up your work.

Sure, I can see this being true. I guess if you have to hire and train a bunch of relatively middle-of-the road junior developers, jQuery is a good choice at the moment. But even if I were in your position, I'd still try to push them to get used to writing in vanilla JS. This is good not only for your project, but also for them, since more and more employers, even mediocre employers, will start expecting potential frontend dev employees to be able to write vanilla JS.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: