React is probably overkill for most simple sites. You could still use JavaScript for some cool stuff without needing all the libraries and frameworks
Comment on No JS, No CSS, No HTML: online "clubs" celebrate plainer websites
lmr0x61@lemmy.ml 1 day ago
I host my own website, and I decided to rewrite the JS portions in React, in order to learn the framework. Boy was it a learning experience: To do the same thing required 2-4 times the amount of code—and that’s just in the scripts, let alone the all the bloat from the packages and the bundler.
I know this is a bit more radical than cutting out frameworks, but working with the JS ecosystem was such a pain, largely because there’s you need to piece together different software to make a stack work, which may or may not go together well. And since your stack is likely unique, good luck getting help on your problems. It made me miss Rust (albeit most languages do)—in Rust, you have Cargo for everything, and it’s beautiful. Rust has its own difficulties, but they actually feel surmountable compared to the dependency hell of JS.
RagingRobot@lemmy.world 1 day ago
x0x7@lemmy.world 1 day ago
The dependency hell of JS is caused by React. It’s an ironic turn because node gained popularity in part because it was one of the first to have a coupled package manager with everyone in contribution, full of a billion packages that follow the unix philosophy of “everything should do one thing, do it will.” Dependency hell would disappear if people stopped popularizing competing swiss army knives, and then trying to mash these swiss army knives together just to improve portfolio.
We’ve gotten to the point where you aren’t considered a real professional unless you start even the smallest projects with maximum technical debt.
lmr0x61@lemmy.ml 1 day ago
That’s fair, actually: my project had 2 packages in my
node_modules
(not mypackage.json
, total dependencies!) in vanilla JS, now it has well over 100. Unreal.mad_lentil@lemmy.ca 1 day ago
They’re just following the model laid out by the venture capital model, really.