Live data from Hacker News

Ask HN: Is jQuery still a thing?

news.ycombinator.com

31–40 of 90 posts

Re: Ask HN: Is jQuery still a thing?

#31

Every other framework relies on JQuery so--yes, absolutely--it's still a thing. And if you don't work for a company that is in the JavaScript-framework-of-the-month mode, you should know JQuery is still king.

I know for a fact that React doesn't. And it's now possible to do quite a bit of element selection (and style flipping), AJAX, and JSON manipulation with pure javascript.

That being said, I agree with your last statement. For better or worse, jQuery still seems to be king.

Re: Ask HN: Is jQuery still a thing?

#32

Every other framework relies on JQuery so--yes, absolutely--it's still a thing. And if you don't work for a company that is in the JavaScript-framework-of-the-month mode, you should know JQuery is still king.

> Every other framework relies on JQuery

This just isn't true. OP mentioned React, Vue.js, and Mithril. None of these use jQuery as a dependency. Neither does Angular, Backbone, or Ember.js.

Re: Ask HN: Is jQuery still a thing?

#33
post #25
post #13

Do you know a better library for support of a wide array of browsers going back many years, with a huge log of support issues and test cases behind it?

jQuery doesn't officially support IE 8 and earlier, or any other browser older than "current - 1". React supports at least the same as jQuery.

http://jquery.com/browser-support/

> If you need to support older browsers like Internet Explorer 6-8, Opera 12.1x or Safari 5.1+, use jQuery 1.12.

Re: Ask HN: Is jQuery still a thing?

#34
post #21
post #14

Earlier quoted context omitted.

PHP should be significantly more embarrassing than jQuery. The jQuery interface is well designed and reliable. The fact that it still works is important. As long as I've got clients asking for IE 8 support, jQuery's going to be in my toolbox. And probably even after.

Ouch. PHP dev here. We write design-pattern-influenced code with classes, abstract classes, DI, interfaces, etc. It's not all bad.

You know, it's been well over a decade of seeing the anti-PHP stuff and I still have yet to see a "PHP is evil" argument that doesn't fall apart after a little scrutiny. I proudly use it and am happy to look at it's usage vs. alternative languages in any of the real-world projects I've developed.

Re: Ask HN: Is jQuery still a thing?

#35
post #17

It depends on what you're doing, and what you're comfortable working with. If you have page content that is largely rendered server-side, with bits of interactivity and some basic AJAX on the frontend, jQuery's your friend. If you want to build a single-page application that rests mostly or entirely on the frontend, thats what the newer frameworks and methodologies are designed to do, and you're better off going with…

OP here: I'm a back-end dev working on an internal company site. I have used jQuery for the past years for things like simple AJAX and manipulationg dropdowns. Recently I had to build an AJAX heavy part of the page, and got a bit lost in callbacks and DOM manipulations (1500+ lines already). There is no real reason to re-code everything, now it's working, but after seeing all the new shiny frameworks, I started to qu…

    > I had to build an AJAX heavy part of the page, and got a bit lost in callbacks and DOM manipulations
Have you missed all the posts on intercooler.js - http://intercoolerjs.org/

Re: Ask HN: Is jQuery still a thing?

#36

Every other framework relies on JQuery so--yes, absolutely--it's still a thing. And if you don't work for a company that is in the JavaScript-framework-of-the-month mode, you should know JQuery is still king.

No popular current generation framework relies on jQuery. The most recent one I can come up with is Angular 1's reliance on their jQlite micro-library but would use the full jQuery if it was on the page.

Re: Ask HN: Is jQuery still a thing?

#37

Every other framework relies on JQuery so--yes, absolutely--it's still a thing. And if you don't work for a company that is in the JavaScript-framework-of-the-month mode, you should know JQuery is still king.

I haven't touched jQuery in over 2 years. It's not necessary anymore as the browsers I support are following standards. Even though the syntax is a little bit nicer than vanilla js I don't see any real advantage in using jQuery anymore. jQuery did a lot for the web (it pushed browsers to keeping standards and it brought native implementations like querySelector), but I think the time has come to move on.

Re: Ask HN: Is jQuery still a thing?

#38

Earlier quoted context omitted.

It's really silly that is how the culture behaves. The right tool for the job is a common moniker in other industries, yet in ours its the source of heated debate and hipsterdom.

PHP is some tool that was never really good, but had some compelling features that no other tools provided. Except that now there are better tools for any task it solved, excluding the task of "maintaining a PHP codebase". If you are starting a new project on it, you should indeed feel silly.

I disagree. Let's try adding 0.2 and 0.3 with the JScript library of your choosing and see if it's any easier than PHP.

Re: Ask HN: Is jQuery still a thing?

#39

React is my only choice for single-page apps, but it's unnecessary for ordinary JS UI widgets on a mostly server-rendered site. For UI elements that have a lot of internal state, React can remove a ton of complexity. However, the delay between initial page render and the React component rendering itself can sometimes be distracting when those elements are key parts of the UI. This is a solved problem if you're using…

[deleted]

Re: Ask HN: Is jQuery still a thing?

#40
For web apps I would use anything BUT jQuery.

For adding simple functionality to a web page, I would probably ever ONLY use jQuery. (Assuming plain js was going to be a hassle.)

FWIW I haven't used much jQuery for about the last 3 years, and all I do is web apps all day every day. The day I discovered Knockout (as the gateway drug) was the day life got exponentially better.

Post reply on HN