3 ms·
I'm not sure these are actual problems (other than JS tooling, which I find opaque.) Instagram works just fine for the vast majority of people. It's taken as go
by noelwelsh 5y ago
I'm not sure these are actual problems (other than JS tooling, which I find opaque.) Instagram works just fine for the vast majority of people. It's taken as gospel that Javascript frameworks are "bloated" but 1) is this really true; and 2) if true does this really matter if the page loads fast enough? React is only 5.3kB and gives a very simple model for reasoning about code. Making code smaller or faster has a cost.
I'll also note that htmx is making a programming language, but they don't seem to understand they are making a programming language, and that usually ends up a disaster. See all the YAML stuff in the devops world.
- recursivedoubts 5y agoAh, and this is precisely where you make your bloomer: we are not making a programming language. Rather, we are making two programming languages: https://hyperscript.org/ https://hyperscript.org/
- feupan 5y agoReact is not only 5.3kb because that’s not the only piece you will need to actually use it. Check out the bundle of CRA for a real-world example. I agree with the general sentiment though. I think the issue is that it’s easy to just import the whole npm registry in a bundle and ship it — and it’s too hard to trim it down. For you a 2MB bundle is ok, but for me it’s taking 30 seconds to open this site and I’m standing here. That’s not ok. Frameworks like Next.js provide a sane base for this; Most others don’t.