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.
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.