Live data from Hacker News

Show HN: Umbrella JS, a 2.5kb jQuery alternative

umbrellajs.com

21–30 of 79 posts

Re: Show HN: Umbrella JS, a 2.5kb jQuery alternative

#22

Is anyone actually still using jQuery in a new project? I can’t think of a single good reason to do so.

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

#23
post #8

Slightly off topic, but I have this OCD that my brain hurts when I see people use wrong capitalization for products. > It is strongly influenced by jquery... Please use jQuery instead, thank you.

English is my 3rd language so please forgive some typos and inaccuracies like these. I understand that these are similar for some people as when I see people using "their" when they mean "they're".

I agree it looks less professional, so I'll try fixing those. Is there any other bit that sounds off?

Edit: That should be fixed! Also a couple of missing `css` => `CSS`, `umbrella` => `Umbrella`, etc.

Re: Show HN: Umbrella JS, a 2.5kb jQuery alternative

#24

Earlier quoted context omitted.

Spot on! I'm a ReactJS developer by trade, but when doing side projects, I still use jQuery from time to time, especially if the client is not that state-heavy. I know I can make do with fetch, querySelector/All and the like, but I'd rather take the convenience. Related: https://robots.thoughtbot.com/how-we-replaced-react-with-pho...

Yep, exactly. I use Umbrella JS (author here!) for most side projects. I only reach for React for SPA and state-heavy projects. These cases with jQuery (or Umbrella JS) is tricky because while you can do it with template strings, you don't get the modularity, build tools and it's difficult to protect against XSS. You have to be very, very careful with .html(...) and only for that reason sometimes React is worth it, s…

There are tiny alternatives to React that support JSX syntax. This library is better when you want to be "closer to the metal": https://github.com/wisercoder/uibuilder

Re: Show HN: Umbrella JS, a 2.5kb jQuery alternative

#25

Is anyone actually still using jQuery in a new project? I can’t think of a single good reason to do so.

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

#28
post #8

Slightly off topic, but I have this OCD that my brain hurts when I see people use wrong capitalization for products. > It is strongly influenced by jquery... Please use jQuery instead, thank you.

English is my 3rd language so please forgive some typos and inaccuracies like these. I understand that these are similar for some people as when I see people using "their" when they mean "they're". I agree it looks less professional, so I'll try fixing those. Is there any other bit that sounds off? Edit: That should be fixed! Also a couple of missing `css` => `CSS`, `umbrella` => `Umbrella`, etc.

[deleted]

Re: Show HN: Umbrella JS, a 2.5kb jQuery alternative

#29
post #8

Slightly off topic, but I have this OCD that my brain hurts when I see people use wrong capitalization for products. > It is strongly influenced by jquery... Please use jQuery instead, thank you.

The phrase you are looking for is "pet peeve".

Re: Show HN: Umbrella JS, a 2.5kb jQuery alternative

#30
post #5

This looks pretty great - I really like the look of Picnic, the author's lightweight (10KB) bootstrap alternative as well: https://github.com/franciscop/picnic

Thanks! I have two other libraries (besides Umbrella JS) that I really care about: Picnic CSS [1] and Server.js [2]. I'll be trying to do some cleaning in my spare time, but both of those require humongous amounts of work to get to the quality level of Umbrella JS.

[1] https://picnicss.com/

[2] https://serverjs.io/

Post reply on HN