3 ms·
> Modern front end javascript frameworks are made to offload the compute from the server to the end user. This saves the company money while giving the end user
by Beltalowda 5y ago
> Modern front end javascript frameworks are made to offload the compute from the server to the end user. This saves the company money while giving the end user a worse/slower experience and drained batteries.
I think it actually has a lot more to do with mobile. Back in the day you could just send everyone the same HTML/JS/CSS rendered on your server and it would work for everyone.
Now things are more complicated: people want "native apps" on their Android and iOS and whatnot, and also want a "desktop" version and a "web version".
So you build a "light" server API, and put a lot of logic in the frontend. Not to save money, but because all the frontend logic is different on every platform (and in different languages: JS on web, Java or Kotlin on Android, Obj-C or Swift on iOS).
Mobile complicated these things a lot more than people realize.
- scarface74 5y agoBut with mobile apps, you can cache more assets on the client and in the case if iOS, as much work as Apple does to optimize WebKit. Objective C/Swift is still much faster. Mobile apps are also more bloated than needed. But at least you only have to load them once. Then again, client side frameworks started taking off in 2012.
- wusspuss 5y ago>Back in the day you could just send everyone the same HTML/JS/CSS rendered on your server and it would work for everyone. HN itself works perfect on mobile or anywhere for that matter and is very lightweight. I don't think it's because they optimized it. They just didn't fuck with it. >Now things are more complicated: people want "native apps" on their Android and iOS Do people want those? I believe it's just companies shoving those down people's throats