Live data from Hacker News

Show HN: Umbrella JS, a 2.5kb jQuery alternative

umbrellajs.com

31–40 of 79 posts

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

#31

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…

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

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

Thank you for the quick fix. And no, I don't go crazy over grammar or spelling (English is my second language as well). I think the website looks pretty cool and well written overall.

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

#35
post #34

How does it fare when it comes to browser compatibility? IIRC, one of the main selling point of jQuery is compatibility with browsers like IE6.

jQuery doesn't claim compatibility with IE6, they dropped it on jQuery 2.0 to IE8+: https://jquery.com/browser-support/

Umbrella JS supports Internet Explorer 11+, with some of the known bugs and wont-fix here: https://github.com/franciscop/umbrella#support-ie11

There is a polyfill to help here: https://github.com/franciscop/umbrella/blob/master/polyfill....

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

#36
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/

Two suggestions, both slightly pedantic:

1. I went by the name and typed picniccss.com instead of picnicss.com and it didn't work. picnic-es-es does sound weird in one's head too.

2. On the website, you say '10kb' but should probably use '10kB'. The small-b is conventionally used to indicate bits and the capital-b is used to indicate bytes.

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

#37

I don't want to be "that guy", but haven't most people moved on to something like Vue instead of manipulating the DOM directly? Every developer I've worked with learned the basics of Vue quickly (less than a day) and marveled at how great it was compared to manipulating the DOM through jQuery (or something similar like Umbrella JS). But sure, there are edge cases where jQuery and similar libs still serve a purpose.

According to this website [1] jQuery is still used by over 70% of websites. I have built production sites in extjs, Dojo, Angular, React etc. but nothing beats the fun of throwing up a quick website in jQuery and Bootstrap. Its even more fun with es6 now! I am looking forward to where jQuery and other DOM manipulation libraries go in the future. [1] https://w3techs.com/technologies/details/js-jquery/all/all

Just to balance the "70% of websites" number, I've worked on a number of websites where there was still some legacy jQuery floating around, but where all new development is expected to happen in a modern framework like React, and new code using jQuery would be unlikely to pass code review. Or, perhaps, where jQuery is legitimately used as part of the occasional escape hatch when you can't use React for some technical reason, but is discouraged and only used with careful scrutiny.

I suspect that if you refined it to "How many new websites in the last year use jQuery as their primary UI library?", the number would be much lower.

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

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

My pet peeve is when people get mad when others don’t get a product’s branding 100% correct.

“Ugh, it’s ‘Lego’, not ‘legos’! ‘jQuery’, not ‘jquery’!”

IMO the world needs more people who don’t give a shit.

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

#40
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".

+1. Using "OCD" casually to mean "things that annoy me when maybe they shouldn't" is a bit insensitive to people with real diagnosable OCD. Elements of OCD, like intrusive thoughts, are present in almost everyone, but usually the term "OCD" is reserved for cases where it has a significant negative impact on life.

https://en.wikipedia.org/wiki/Obsessive%E2%80%93compulsive_d...

Post reply on HN