Hacker News new | ask | show | jobs
by romanovcode 2956 days ago
I don't even get why it is important that it's 1kb. Give me a library with great API and easy to use. Nobody cares if library is 1kb or 100kb (minified).
4 comments

Don't assume that everyone is happy with whatever level of mediocrity _you_ think is acceptable. It's because of developers prioritizing developer experience and other baggage over user experience that I despise my mobile web surfing experience.

Plenty of people do care about frontend performance (as evidenced by the plethora of efforts ranging from small alt vdom libs by solo devs to large corporate efforts like AMP or m.uber.com[1])

[1] https://eng.uber.com/m-uber/

>>Don't assume that everyone is happy with whatever level of mediocrity _you_ think is acceptable.

So large library size == mediocre?

Jesus christ, HN is full of extremists.

A large library is perfectly fine if it provides enough functionality to pull its own weight. But these days just about every site on the web has dozens if not hundreds of bloated libraries for the stupidest things and large bundle sizes due to that have become a pretty good indication of wrong priorities from the developer's part.

And I, as a user, am left waiting several seconds waiting for pages larger than the original Doom executable to load. It's gotten so bad that my wife had to be selective of when to use her phone because browsing normally without wifi from starbucks etc would get her over the plan limit by mid-month. I mean, how much browsing are you really supposed to be able to do when every page is several MBs of JS alone, and you have a 300MB/mo plan to work with? Not every country has cheap/good mobile plans.

^ This
The irony is you are the extremist for thinking HN is full of extremists! :)

Also, library size !== mediocrity at all. No one builds an unreasonably large framework on purpose either.

Given an equal feature set (and similar performance), a larger lib is worse, yes.

If your problem space requires a lot of code, then off course not.

HyperApp has a great API, and for Web client code, size does matter.
> Nobody cares if library is 1kb or 100kb (minified).

You do if your app needs to be mobile-friendly. 100kb can easily add an extra second or two to the page load on a bad enough mobile connection.

Article has 300kb+ of javascript on mobile, loads pretty fast on 3G. I don't know what you're talking about.
Mobile google.com loads 200kb+ of javascript and I've never heard anyone complain about loading speeds for it.
Loading time doesn't always result in complaints (that depends on the user's expectations) but has a significant effect on likelihood of repeat visits, length of visits, and amount of interaction.
Hyperapp has a great API, it's easy to use and it's 1 kB.