News for hackers. Stuff that matters.
Re:Floatplane – Linus Tech Tips launches their own video hos... by leppr on Monday December 16, 2019 @12:02PM (#21804574)
It's part of making a Progressive Web App: the user should believe they're using a regular smartphone app, and being unable to simply select and copy text goes a long way towards maintaining the illusion.

/s

Re:Floatplane – Linus Tech Tips launches their own video hos... by arkanciscan on Monday December 16, 2019 @12:04PM (#21804595)
Should we also force our users to download a 30mb update every week? Just to really emulate the native app experience!
Re:Floatplane – Linus Tech Tips launches their own video hos... by mhd on Monday December 16, 2019 @12:32PM (#21804935)
The neat thing about modern SPAs backed with your average feature-flagged CI/CD setup is that you're getting a new 30 mb download each time.
Re:Floatplane – Linus Tech Tips launches their own video hos... by kreetx on Monday December 16, 2019 @12:58PM (#21805226)
I belive you but could you elaborate for those who don't know what you mean? :)
Re:Floatplane – Linus Tech Tips launches their own video hos... by nothrabannosir on Monday December 16, 2019 @01:12PM (#21805399)
Continuous Deployment implies at least a few releases per day. Especially for bundled JavaScript (which is most setups) this means you’re invalidating the cache of the entire app at every payload.

Imagine having to download an app update every time someone merged to master. That’s most SPAs.

Re:Floatplane – Linus Tech Tips launches their own video hos... by Hermitian909 on Monday December 16, 2019 @02:10PM (#21806032)
This can be the case, but if any of the engineers on staff spend a day reading docs it should generally be fixable. A 30mb it should be chunked by the build process in such a way that small updates usually cause cache invalidation for only a few kb worth of files.

If the library you use to build your SPA (React, Vue, etc.) is relatively up to date you should also probably not be sending the whole app over the wire at once to anyone. Routes and components can be set to only load when the user actually attempts to access them inside the SPA, reducing egress significantly.

Re:Floatplane – Linus Tech Tips launches their own video hos... by arkanciscan on Monday December 16, 2019 @01:29PM (#21805587)
In Webpack the chunks whose content don't change don't get new file names and so the cache needn't be invalidated for them. Vendor code which is often the largest part, can stay cached over many deployments so long as the versions are locked. Of course, your host could still send no-cache headers and invalidate everything, but that's a problem with the host/cdn.
Re:Floatplane – Linus Tech Tips launches their own video hos... by mhd on Monday December 16, 2019 @02:38PM (#21806339)
Sure, I really do hope that engineers do their best to fix things, but in the sad world of contemporary web frontends, I'm a bit pessimistic (then again, if one has to err on the side of build system over-engineering, you're rarey disappointed).

Still, if the deployment system involves frequent node module updates, the vendor files get "dirty" quickly, too.

Re:Floatplane – Linus Tech Tips launches their own video hos... by arkanciscan on Monday December 16, 2019 @04:44PM (#21807599)
Sad!? You must not be old enough to remember when we used the global namespace for modules, and there was no console.log(). You wanna talk about sad, try debugging with alert().
Re:Floatplane – Linus Tech Tips launches their own video hos... by arkanciscan on Monday December 16, 2019 @01:11PM (#21805389)
I think they are talking about bundling before code-splitting (like we did back in the Browserify days) and that's true, but we have Webpack, or ESModules now.
Re:Floatplane – Linus Tech Tips launches their own video hos... by twobat on Monday December 16, 2019 @12:29PM (#21804892)
This linked page alone has 10 MB.
Re:Floatplane – Linus Tech Tips launches their own video hos... by jgalt212 on Monday December 16, 2019 @01:45PM (#21805776)
It fits with Linus's MO of making videos of how to build computers and systems 10-100X more powerful than you need.
Re:Floatplane – Linus Tech Tips launches their own video hos... by 72deluxe on Monday December 16, 2019 @12:49PM (#21805122)
Insane and grotesque!

Think of all the CPU cycles on all hardware (clients + network devices) and energy used just to fetch web "content" these days.

Might as well return to just burning coal at home to keep warm, thinking of the net effect on the environment.

It's absolutely stupid.

Re:Floatplane – Linus Tech Tips launches their own video hos... by smoe on Monday December 16, 2019 @01:27PM (#21805560)
And all the people who don't have $500+ phones, unlimited data plans and fast internet connections.

I used a ~$50 android and pre-paid plans for over a year while traveling Latin America. Wast swaths of the internet are basically inaccessible unless you have tremendous patience and nerves as well as leftover money to throw at the ISPs.

Re:Floatplane – Linus Tech Tips launches their own video hos... by TheRealSteel on Monday December 16, 2019 @02:31PM (#21806247)
Well it's a modern web page so it's 30mb every time you load it
Re:Floatplane – Linus Tech Tips launches their own video hos... by arkanciscan on Monday December 16, 2019 @06:56PM (#21808948)
Browsers have caches