r/programmingcirclejerk • • Dec 04 '18

Progressive Web Apps Explained

https://codecampanion.blogspot.com/2018/12/progressive-web-apps-pwa-explained-code.html
5 Upvotes

13 comments sorted by

7

u/bruce3434 vulnerabilities: 0 Dec 04 '18

Tldr? What makes a web app progressive? And what are some conservative web apps?

4

u/[deleted] Dec 04 '18

PWA: your web page doesnt look like shit on mobile and you bookmark it to your home page

4

u/juustgowithit What part of ∀f ∃g (f (x,y) = (g x) y) did you not understand? Dec 04 '18

/uj You forgot the parts where website files can be stored locally, meaning no need to send them over every single visit, and there are possibilities for offline storage, notifications, etc. Plus, it’s not just pinned to homepage, it’s actually opened in a separate window (<-?) and not as a mobile browser tab. Most mobile apps today would work just as fine as pwas, and we wouldn’t have to deal with ‘coming soon to your platform’

1

u/[deleted] Dec 04 '18

<unjerk> I'm not convinced this solves anything beyond what a responsive web design and browser caching already solves. Most "apps" are just expensive ports of the company web site to a native mobile app because the hardcore android/iOS devs convinced their CIO that they are necessary and couldn't be entirely replaced by some well placed break points. I get some apps have a genuine need for native app functionality but if your app can be a "progressive web app" chances are it could just be a responsive web app in a browser. </unjerk>

1

u/juustgowithit What part of ∀f ∃g (f (x,y) = (g x) y) did you not understand? Dec 05 '18

Maybe I understand something incorrectly, but from what I saw a web app needs a few extra config files to work as a pwa, and they act as hints for said browser caching. So all of the convenience doesn’t cost much

1

u/[deleted] Dec 05 '18

/uj: essentially the manifest file and registering a ServiceWorker instance but that's about it really.

1

u/Faalentijn uncommon eccentric person Dec 06 '18

lol PCJ hivemind caught in the local minima of the jerk attractor, cannot escape unjerk trap

1

u/[deleted] Dec 06 '18

Err.. I'm pretty sure I've stated explicit unjerk but whateva

1

u/umop_aplsdn what is pointer :S Dec 05 '18

PWAs let you use the app with no internet connection

1

u/hedgehog1024 Rust apologetic Dec 05 '18

What a breaktrough compared to native apps!

1

u/umop_aplsdn what is pointer :S Dec 07 '18

how long does it take to download and install a native app?

1

u/[deleted] Dec 05 '18

/uj: It is just a responsive webpage in a browser, it just gets to work without internet connection and registers a worker in a separate thread to act like a "network proxy" that balances between cache and actual network (a.k.a. service worker).

The biggest advantage is that on Android, because Google pushes this thing, as apparently does MS, properly manifested website gets to open in "chromeless" webviewer windows and appear more native-like, and that's really all that PWA makes.

Everything else faux-native (ability to register intents, access camera, sensors, whatnots) is really already provided by Chrome to regular webapps through more-less standard Web APIs.

This also makes it a very unexpensive port of the company website to an app.

But, all browsers (not sure about Safari) intend to expand this to replace "app-like" browser extensions (and ChromeOS apps) with PWAs and it's looking very likely that through initiatives like Google's Carlo PWAs could attempt replacing Electron apps.

1

u/r2d2_21 groks PCJ Dec 04 '18

So, Google Chrome supports it now, an edge will be supporting it at Redstone for and yes, so does the safari.

Was this written with speech to text? Or is the author not a native English speaker?