r/programming • • Apr 29 '21

Modern JavaScript Explained For Dinosaurs

https://medium.com/the-node-js-collection/modern-javascript-explained-for-dinosaurs-f695e9747b70
287 Upvotes

172 comments sorted by

View all comments

Show parent comments

-5

u/valtism Apr 30 '21

What a tired take coming from a lack of understanding of modern web app development.

4

u/Zer0ji Apr 30 '21

Dude, I tried using React to redo a POC front-end, and ended up with 600 MB of modules on my disk and a built app that was nearly 1 MB, for something all text with maybe 500 lines of code...

I since then switched to Preact but it's still big.

4

u/StillNoNumb May 01 '21

You might not wanna use React for that then. React is for complex, usually dynamic webapps with many pages and functionalities - there's more appropriate libraries for your purpose.

In programming, it's always about knowing what tool solves your problem best. I don't go around and complain about Python either because I tried making a kernel with it and failed.

0

u/Zer0ji May 01 '21

It's for a board game, React allows me to define a Card component and reuse it everywhere - it's not a multi-page app, but it's still a complex one

A python kernel would be fun :p

1

u/StillNoNumb May 02 '21

What dependencies did you need for that? React is only about 30KB.