4 ms·
Why is everybody so obsessed with size? 100kB means nothing these days.
by tasubotadas 3y ago
Why is everybody so obsessed with size? 100kB means nothing these days.
- 130e13a 3y agoi'm also a bit confused why e.g. they have an explicit rule that they only use `let` instead of `const` when declaring variables, "for reducing the bundle size", which seems like a bad trade-off in order to save maybe a couple dozen bytes at most?
- ra1231963 3y agoI’m a bit confused why they made it in the first place given the dozens of similar ultra minimal spartan frameworks to choose from that nobody uses (every other comment here is plugging one).
- jhp123 3y agoThis library actually has some pretty unique ideas, like the use of Proxy objects which is not commonplace in javascript frameworks. Even if it didn't, sometimes it's just nice to build your own take on something.
- ra1231963 3y agoProxy objects are absolutely common in js state management frameworks. And yes it’s nice to build something on your own, but this project is clearly aiming to convince other people to use it in their projects.
- pfg_ 3y agoDon't minifiers convert these anyway? const a = 1; let b = 2; console.log(a, b); bun build --minify a.js // bundles this to: var o=1,l=2;console.log(o,l); It's not even using const or let, it's flattened these multiple statements into one 'var' statement
- robertoandred 3y agoOnly if you're targeting super old browsers.
- zuprau 3y agoWrong. You know it never ends up being 100kb, and when it reaches 1MB (it always does) then you get the real issues. It’s because of your thinking that we got bloated webpages.
- ilrwbwrkhv 3y agoBecause of people like you we will have the collapse of civilization, global warming and apps like Slack. Not caring about memory usage, data usage, speed is the reason why software is so brittle and broken these days.
- paulddraper 3y agoThey pretend it matters as they download thirty 10MB Tictok videos.