News for hackers. Stuff that matters.
Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative by aphextron on Sunday August 19, 2018 @11:37AM (#17794661)
Is anyone actually still using jQuery in a new project? I can’t think of a single good reason to do so.
Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative by krishanath on Sunday August 19, 2018 @11:50AM (#17794719)
jQuery is a library of shortcuts. Everything you can do using jQuery you can do without jQuery, but that's like saying everything you can do in Excel you can do with just a Calculator app. Yes, it is possible, but why would you want to?

When you do things like drag & drop and interactive resize you have to query DOM to get position and sizes, and perform hit detection, and you have to manipulate DOM directly. jQuery is very convenient for these kinds of things.

Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative by pier25 on Sunday August 19, 2018 @09:01PM (#17797095)
I maintain a number of widgets with jQuery for an edtech app with drag and drop, works on mobile and desktop, etc.

I'm starting to rewrite those to Vue and I've found the main limitation is not the DOM access (since you can use refs) but the model logic. In Vue all data is made of primitives or dumb objects, you can't really use classes for reactive data.

Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative by aphextron on Sunday August 19, 2018 @12:22PM (#17794869)
I know exactly what jQuery is. I’ve used it happily for years on many projects. However it is completely obsolete in 2018 for anyone that does not need to support IE8.
Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative by alphakappa on Sunday August 19, 2018 @05:52PM (#17796371)
I may be mistaken, but sounds like you are referring to browser compatibility not being a good reason to adopt jQuery anymore.

But like the parent said above, there's more to jQuery than just getting browser compatibility - it's an abstraction for UI concepts that would require writing a ton of low level JS otherwise.

Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative by dagoat on Sunday August 19, 2018 @11:48AM (#17794705)
You still need jQuery for Bootstrap
Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative by tenryuu on Sunday August 19, 2018 @12:07PM (#17794797)
I've always used bootstrap native, saved the extra request for jq
Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative by is_true on Sunday August 19, 2018 @01:21PM (#17795185)
It depends on what you need. You could use the grid without jquery
Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative by aphextron on Sunday August 19, 2018 @12:24PM (#17794876)
Another great reason to never use Bootstrap
Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative by boubiyeah on Sunday August 19, 2018 @02:28PM (#17795527)
Not sure why you get downvoted haha
Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative by darol100 on Sunday August 19, 2018 @06:26PM (#17796520)
From time to time, I need to make small interaction JS, which using React or Vue will be super overkill. Instead of using vanilla JS, I just use jQuery.

The biggest issue is that "small JS interaction" end up in an app. In that case, I will re-write in React.

Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative by jister on Sunday August 19, 2018 @11:49AM (#17794712)
Sure, why not?!
Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative by octosphere on Sunday August 19, 2018 @11:58AM (#17794758)
jQuery is still very prevalent, especially on the legacy-web (those websites you rarely visit, but litter the web like a plague). Think e-commerce sites, Wordpress sites, spam blogs (splogs), e-book shops - they mostly use jQuery to sell you random crap you don't need, and jQuery was added on last minute to add some sheen to an otherwise plain site.
Re:Show HN: Umbrella JS, a 2.5kb jQuery alternative by vivab0rg on Monday August 20, 2018 @10:59AM (#17800473)
As long as it is a Bootstrap dependency?