Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Two worlds: native vs. hybrid

Two worlds: native vs. hybrid

Over the last several years web technologies became unbelievably powerful. Even whole operating systems are written using JavaScript, HTML5 and their friends. Can native way be replaced by web technologies? What's the difference between native and hybrid applications? What is the best approach and why? This time Ilya will impartially describe pros and cons of each approach, provide situations when to use which and report all the problems you may face implementing each of them.

Ilya Pukhalski

November 11, 2012
Tweet

More Decks by Ilya Pukhalski

Other Decks in Programming

Transcript

  1. — Web yesterday, today and tomorrow — Mobile strategies —

    Native and Hybrid — Does it work for you? — Aſterword
  2. By 2015, more U.S. Internet users will access the Internet

    through mobile devices than through PCs or other wireline devices. http://mobithinking.com/mobile-­‐marketing-­‐tools/latest-­‐mobile-­‐stats
  3. ?

  4. !=

  5. Web Application — a web page (XHTML or a variant

    thereof + CSS) or collection of Web pages delivered over HTTP which use server-side or client-side processing (e.g. JavaScript) to provide an "application-like" experience within a Web browser. http://www.w3.org/TR/mwabp/#webapp-­‐de;ined
  6. Cons — Some old mobile and desktop browsers don’t support

    media- queries — Slow rendering; downloading non-using content — «Bad» mobile UX
  7. How-to — JQuery Mobile — JQuery Touch — Sencha Touch

    — Kendo UI + Backbone.js — YourOwnAmazingFramework.js — ...
  8. Cons — Expensive in terms of time and resources —

    Device-specific APIs access problems — Performance optimization «headache»
  9. I want desperately to be a web developer again, but

    if I have to wait until 2020 till browsers to do what Cocoa can do in 2010, I won't wait. — Joe Hewitt
  10. Web technologies are not ready to use them to build

    applications... It's all about workarounds.
  11. Pros — Native look-and-feel — Nice load speed and performance

    — Access to native mobile features — Simple bugfixing and support
  12. Cons — Time-consuming for maintaining — Third-party approval reqiured for

    app to appear in the app stores — Problems with look-and-feel if needed to get native for all devices
  13. 62

  14. 63

  15. UI Guidelines — iOS Human Interface Guidelines — Android User

    Interface Guidelines — BlackBerry User Interface Guidelines — User Experience Design Guidelines for Windows Phone — ...
  16. How to eliminate — Using native UI elements /so complex

    — Don't simulate native UX /users judge by appearness
  17. 71

  18. 72

  19. 80

  20. 81

  21. 83

  22. 84

  23. For every hour spent on development, three had to be

    spent in QA (QA:DEV = 3:1). — Brian Fling
  24. 96

  25. 101

  26. Making a native application can be the best thing for

    a product, but on the other hand the mobile web is the only long term commercially viable content platform for mobile devices. — Brian Fling
  27. NATIVE — A single mobile OS is a target —

    Some native functionality is required — Requirements contain rich extraordinary UI — There are existing in-house skills for creating native apps for all platforms
  28. HYBRID — Multiple mobile OS is a target and budget

    is not so huge — There are existing in-house web skills — You are thinking about the future
  29. NATIVE MAY WORK FOR... — Games (in most cases) —

    Consumer-focused apps with a moderately graphical interface. — Wow-effect apps
  30. — Consumer-focused apps with a moderately graphical interface. — Business-focused

    apps that need full device access. HYBRID MAY WORK FOR...
  31. Slightly more Americans (36.4%) use their mobile browser than access

    applications (34.4%). http://www.comscoredatamine.com/2011/02/top-­‐mobile-­‐activities-­‐in-­‐us/
  32. Facebook's top mobile client is m.facebook.com (Facebook's mobile Web site)

    with 18% of total new Facebook posts. Android, iPhone, and Blackberry are next each with about 4% of total new Facebook posts. http://danzarrella.com/new-­‐data-­‐on-­‐mobile-­‐facebook-­‐posting.html#