Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

i'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?


Don'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


Only if you're targeting super old browsers.


I’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).


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


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: