A place to cache linked articles (think custom and personal wayback machine)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hace 4 años
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. title: Say Hello to Offline First
  2. url: http://hood.ie/blog/say-hello-to-offline-first.html
  3. hash_url: 32bfd094aa8514985578ea493c6c3aea
  4. <p>Prescript: Join the discussion on <a href="http://offlinefirst.org">offlinefirst.org</a> and help collecting information on the <a href="https://github.com/offlinefirst">Offline First Github Organisation</a>. And see the two follow up articles <a href="http://blog.hood.ie/2013/11/offline-first-and-the-circle-of-web/">Offline First and the Circle Of Web</a> and <a href="http://blog.hood.ie/2013/12/offline-first-and-the-circle-of-web-part-ii-breaking-the-circle/">Offline First and the Circle of Web Part II: Breaking the Circle</a>.</p>
  5. <p>(<a href="http://habrahabr.ru/post/201004/">Russian translation</a> by <a href="https://twitter.com/kouprianov">@kouprianov</a>)</p>
  6. <p>The members of <a href="http://hood.ie" title="Hoodie">Team Hoodie</a> are currently travelling around quite a bit, organising, participating in and attending conferences and workshops in various countries, and through all this we’ve not only made lots of personal experiences with limited network connectivity, but also met many people from all over the world, all with their own related stories and problems.</p>
  7. <p><strong>Frequently not having any data connection in even the wealthiest and most developed cities of the world has led us to conclude that no, the mobile connectivity/bandwidth issue isn’t just going to solve itself on a global level anywhere in the near future.</strong></p>
  8. <p><a href="http://www.flickr.com/photos/rudlavibizon/1213670748/" class="no-border"><img src="http://hood.ie/blog/images/201311/tube.jpg" alt=""/></a></p>
  9. <p>We’ve generally been rather optimistic about the whole problem, often thinking that coverage and bandwidth are sure to increase continually, but our recent experiences have made this attitude appear increasingly naïve. Capacity problems, varying coverage and zones with <strong>zero reception, unreliable connections</strong> (both wifi and telco) and problems incurred through travelling will likely persist for quite a while.</p>
  10. <p><strong>Geography is non-negotiable</strong>, as is most architecture. Travellers are doubly plagued: not only by their mode of transport often prohibiting any sort of connection (many subways and high-speed trains come to mind, as do most airlines), but also by the extortionate roaming charges imposed by the carriers, making a spy-sized collection of SIM cards a neccessity for anyone without a massive personal telco budget. And this is speaking from a solidly western-europe-centric perspective.</p>
  11. <p><a href="https://twitter.com/gr2m/" title="Gregor Martynus on Twitter">Gregor</a> has spent the last six weeks travelling through Africa on the <a href="http://africahacktrip.org" title="AfricaHackTrip">AfricaHackTrip</a>, and we’ve had the opportunity to speak to people from all over the world at <a href="https://twitter.com/gr2m/" title="Mozilla Festival">Mozfest in London</a>. Here and in many other instances we’ve encountered a solid interest in and a passionate desire for better offline capability in both web and native applications.</p>
  12. <h2>We can’t keep building apps with the desktop mindset of permanent, fast connectivity, where a temporary disconnection or slow service is regarded as a problem and communicated as an error.</h2>
  13. <p>Mobile networks simply don’t provide that same level of quality and consistency, and it’s high time we start adapting to that reality. In the same way it makes sense to build interfaces mobile-first, it’s time to think about designing and building our applications offline-first. With an offline mode that isn’t merely a contingency for an error scenario, but a fundamentally more flexible and fault-tolerant way of application design.</p>
  14. <p>With <a href="http://hood.ie" title="Hoodie">Hoodie</a>, we’ve created an architecture that allows you to build offline apps with relative ease. There are a few issues, but we’re quite confident about the technical aspects of our syncing engine and how it handles being offline. But now we’ve stumbled on a plethora of new, hitherto unknown and unresearched use cases and UX scenarios, all of which are only now easily within the reach of most developers.</p>
  15. <p><a href="http://www.flickr.com/photos/peterv/93463384/" class="no-border"><img src="/blog/images/201311/hiking.jpg" alt=""/></a></p>
  16. <p>This is quite literally a new frontier, largely unexplored and full of interesting problems and unimagined edge cases. In most other realms of app design we are spoilt with UX/UI patterns we can readily employ, but offline-first is <em>terra incognita,</em> there is practically nothing to go on in terms of patterns and metaphors.</p>
  17. <h1>Offline Becomes Reality</h1>
  18. <p>All of a sudden, offline becomes more than error handling. Offline becomes a non-threatening reality in which, yes, some aspects of your app will neccessarily stop working, but many others don’t, because they no longer have to. And this raises many fundamental questions:</p>
  19. <blockquote>
  20. <p>Does the app even need to inform the human of the current connection state? Is this information even relevant to the human? If so, how can this best be done?</p>
  21. </blockquote>
  22. <blockquote>
  23. <p>Can I give the users more trust in the app, leaving them safe in the knowledge that it won’t forget the last state it was in, and that it won’t lose any data, regardless of what the connectivity situation is?</p>
  24. </blockquote>
  25. <blockquote>
  26. <p>How can I communicate to the human that creating data within the app is still possible offline, and that it will be posted/dispatched/properly dealt with in the future?</p>
  27. </blockquote>
  28. <blockquote>
  29. <p>How can my interface convey changes that occur in the users’ current view when they reconnect and the server pushes new and changed data? What to do with deleted items, things that can’t be organised in lists, objects that aren’t in themselves immutable (like emails)?</p>
  30. </blockquote>
  31. <blockquote>
  32. <p>How can I make the inevitable resolution of conflicts by the human as painless and intuitive as possible?</p>
  33. </blockquote>
  34. <blockquote>
  35. <p>Can the app make any preemptive decisions on the part of the human and pre-load any low-overhead data they might need later?</p>
  36. </blockquote>
  37. <blockquote>
  38. <p>What metrics (possibly behavioural) are there to base these decisions on?</p>
  39. </blockquote>
  40. <blockquote>
  41. <p>How can I word all of these scenarios in a way that doesn’t worry the users, that embraces offline as an unproblematic reality?</p>
  42. </blockquote>
  43. <p>There’s more, of course, but we have to start somewhere. <a href="https://festival.etherpad.mozilla.org/mobile-designing-offline-first-web-apps" title="Offline First Application Design">Our Mozfest session on Offline First Application Design</a> has made this abundantly clear to us. There’s a whole new paradigm rolling our way, and we’re going to roll with it. We want to help users of Hoodie in building robust, always-usable applications, not just on a technical level, but also with patterns, metaphors and methods for higher-level application, user experience and interface design. This will be our research project, and it’s going to live at <a href="http://offlinefirst.org" title="Offline First">offlinefirst.org</a>.</p>
  44. <p>If you are interested in joining the conversation, you can start by leaving comments on this post. We are looking forward about what you have to share! :)</p>