Felix Kohlgrüber
05/13/2020, 6:50 AMFelix Kohlgrüber
05/13/2020, 6:51 AMChris Knott
05/13/2020, 10:28 AMKonrad Hinsen
05/13/2020, 2:19 PMFelix Kohlgrüber
05/13/2020, 2:45 PMseed
framework and clocks in at ~600kb (including ~300kb for an icon and splashscreen), works offline, and can be installed to your homescreen on iOS or Android devices." - https://woz.sh/Konrad Hinsen
05/13/2020, 3:47 PMjamii
05/13/2020, 11:13 PMjamii
05/13/2020, 11:23 PM...there exists a small chance that the entire transaction will be lost if the OS crashes or there is a loss of system power before the data is flushed to disk. Since such catastrophic events are rare, most consumers should not need to concern themselves further.
Felix Kohlgrüber
05/14/2020, 7:03 AMNick Smith
05/14/2020, 8:11 AMNick Smith
05/14/2020, 8:12 AMDan Cook
05/14/2020, 8:15 PMjamii
05/14/2020, 8:21 PMone could argue that smartphones and tablets aren't the right devices for persistent and durable storage anyway.The idea of offline-first apps is that they are completely capable without a network connection, and just use the network for backup / collaboration. Email is a perfect example - with native clients I can search and write emails offline and then sync up when I'm back online, even though the canonical copy of my inbox lives on a server somewhere. Web-based email never seemed to deliver a decent offline experience. A side-effect of building stuff in this way is that offline-first apps typically load faster (because the data is already here), are more responsive (don't have to wait for a network roundtrip to eg autocomplete an email address) and are easier for the user to extend/compose (because all the data and code exists locally already). The future I'm hoping for is we keep the ease-of-distribution of the web but allow building offline-first apps that are actually able to use the full capabilities of the machine. My phone has a 128gb drive. I send/receive ~0.3gb of email per year. Keeping a synced copy really shouldn't be a problem.
Felix Kohlgrüber
05/15/2020, 2:00 PMFelix Kohlgrüber
05/15/2020, 2:15 PMjamii
05/15/2020, 9:37 PMif the browser deleted data it could be restored from the email-serverOnly if the server has already synced that data. Otherwise it just deleted some emails that were queued waiting to be sent and undid all the changes to my inbox. And even if there is no data loss, deleting the data assumes that I'm almost always online and that it's only stored locally as an optimization. I have this problem in practice with eg spotify which occasionally clears all downloaded music for some reason, usually just as we're about to drive into the mountains and out of cell phone coverage. Or when I'm abroad and don't have mobile data. There was a proposal to allow tagging browser data as persistent so that it won't be deleted by the browser without asking the user first - that would be big improvement if it lands. But I still expect the APIs in general to be built around an online-first model of the world.
jamii
05/15/2020, 9:45 PMThis may be inconvenient, but not a big problem.It's not just inconvenient, it's a symptom of an architecture that is based around turning my multi-thousand-dollar supercomputer into a dumb client for an overloaded vps somewhere on the other side of the world and on the other side of a spotty cell connection. Not because it produces a better experience - aside from the ease of distribution most web apps provide dramatically worse UX than the native apps of the 20th century - but because it's more profitable to own the users data. So it really bugs me to see that model becoming not just prevalent but invisible, to the point that people design api's for offline usage that are not usable by someone who is regularly offline.