Live data from Hacker News

Just Use jQuery

twitter.com

21–30 of 41 posts

Re: Just Use jQuery

#21
Honest question from a backend developer:

Is it still necessary to use JQuery in 2023 instead of vanilla js? I always had the impression JQuery was more useful to decouple you from the pain of multi-browser development in the 2000s dark ages of browser standards adoption.

Re: Just Use jQuery

#22

I'm quite happy with Vue, and the Vue HTTP component loader so I don't have to deal with the build process in Python apps. I also quite enjoyed Svelte. I have very little interest in touching the DOM imperatively when a declarative option exists.

> Vue HTTP component loader Whats this? Can you link?

Re: Just Use jQuery

#23
post #22

I'm quite happy with Vue, and the Vue HTTP component loader so I don't have to deal with the build process in Python apps. I also quite enjoyed Svelte. I have very little interest in touching the DOM imperatively when a declarative option exists.

> Vue HTTP component loader Whats this? Can you link?

I believe they're talking about single file components being lazy loaded.

Re: Just Use jQuery

#24

Honest question from a backend developer: Is it still necessary to use JQuery in 2023 instead of vanilla js? I always had the impression JQuery was more useful to decouple you from the pain of multi-browser development in the 2000s dark ages of browser standards adoption.

Not necessary, but you might like the jQuery API.

I still use it as it’s a decent way to write succinct code to access the DOM.

Makes me laugh that the same devs that claim you should use vanillaJS and that jQuery is bad are the same ones building React sites and using whatever else the latest JS trend is!

Re: Just Use jQuery

#25

Honest question from a backend developer: Is it still necessary to use JQuery in 2023 instead of vanilla js? I always had the impression JQuery was more useful to decouple you from the pain of multi-browser development in the 2000s dark ages of browser standards adoption.

There is no need for jQuery nowadays. That said, it in still convenient. Compare:

    $(“.submenus”).hide()
vs

    let submenus = document.querySelectorAll(“.submenus”);
    for (let i = 0; i 

Re: Just Use jQuery

#26

I'm quite happy with Vue, and the Vue HTTP component loader so I don't have to deal with the build process in Python apps. I also quite enjoyed Svelte. I have very little interest in touching the DOM imperatively when a declarative option exists.

What do mean by build process in Python Apps?

Re: Just Use jQuery

#27

Honest question from a backend developer: Is it still necessary to use JQuery in 2023 instead of vanilla js? I always had the impression JQuery was more useful to decouple you from the pain of multi-browser development in the 2000s dark ages of browser standards adoption.

Ha. We actually just installed jquery in our code base recently for our Chrome extension.

I can’t remember the exact use case. We probably could have done it in raw JS, but jQuery made a bunch of things much easier. Since it’s a Chome extension, package size didn’t really matter.

Re: Just Use jQuery

#28

For simple, mostly-static pages, go right ahead. For dynamic pages with a lot of interactions... jQuery doesn't scale so well.

I built puter.com in jQuery and honestly couldn't be happier :')

Re: Just Use jQuery

#29
post #25

Honest question from a backend developer: Is it still necessary to use JQuery in 2023 instead of vanilla js? I always had the impression JQuery was more useful to decouple you from the pain of multi-browser development in the 2000s dark ages of browser standards adoption.

There is no need for jQuery nowadays. That said, it in still convenient. Compare: $(“.submenus”).hide() vs let submenus = document.querySelectorAll(“.submenus”); for (let i = 0; i

This is a major reason why I still use jQuery instead of vanilla.

Re: Just Use jQuery

#30
post #25

Honest question from a backend developer: Is it still necessary to use JQuery in 2023 instead of vanilla js? I always had the impression JQuery was more useful to decouple you from the pain of multi-browser development in the 2000s dark ages of browser standards adoption.

There is no need for jQuery nowadays. That said, it in still convenient. Compare: $(“.submenus”).hide() vs let submenus = document.querySelectorAll(“.submenus”); for (let i = 0; i

Why not this?

  document.querySelectorAll("p").forEach(e => e.style.display = "none")
Post reply on HN