Fowa2010 progressive-enhancement

54
Real progressive enhancement Chris&an Heilmann FOWA, London, October 2010

description

Presentation at Future of web apps in London 2010 about progressive enhancement and building things for the web - audio soon available.

Transcript of Fowa2010 progressive-enhancement

Page 1: Fowa2010 progressive-enhancement

Real progressive enhancement

Chris&an HeilmannFOWA, London, October 2010

Page 2: Fowa2010 progressive-enhancement

HTML5

Page 3: Fowa2010 progressive-enhancement

Beware of truisms!

Page 4: Fowa2010 progressive-enhancement

HTML5 does not mean building apps for iPad, iPhone and Android.

Page 5: Fowa2010 progressive-enhancement

Staying in the comfort zone.

Page 6: Fowa2010 progressive-enhancement

Building for the web means open development.

Page 7: Fowa2010 progressive-enhancement
Page 10: Fowa2010 progressive-enhancement

You can leave now - I don’t need you any longer to watch my videos!

““

Page 11: Fowa2010 progressive-enhancement
Page 12: Fowa2010 progressive-enhancement
Page 13: Fowa2010 progressive-enhancement
Page 14: Fowa2010 progressive-enhancement
Page 15: Fowa2010 progressive-enhancement

HTML5 means moving from hacks to web applications.

Page 16: Fowa2010 progressive-enhancement

The web is a scary place.

Page 17: Fowa2010 progressive-enhancement

A constantly upgrading web?

Page 18: Fowa2010 progressive-enhancement

IE6+Large Organisations=BFF

http://www.hmg.gov.uk/epetition-responses/petition-view.aspx?epref=ie6upgrade

Page 19: Fowa2010 progressive-enhancement

Complex software will always have vulnerabilities and motivated adversaries will always work to discover and take advantage of them.  There is no evidence that upgrading away from the latest fully patched versions of Internet Explorer to other browsers will make users more secure.

Page 20: Fowa2010 progressive-enhancement

It is not straightforward for HMG departments to upgrade IE versions on their systems.  Upgrading these systems to IE8 can be a very large operation, taking weeks to test and roll out to all users.

Page 21: Fowa2010 progressive-enhancement

To test all the web applications currently used by HMG departments can take months at significant potential cost to the taxpayer. It is therefore more cost effective in many cases to continue to use IE6 and rely on other measures, such as firewalls and malware scanning software, to further protect public sector internet users.

Page 22: Fowa2010 progressive-enhancement
Page 23: Fowa2010 progressive-enhancement

And this is why we need progressive enhancement.

Page 24: Fowa2010 progressive-enhancement

Which is not “making it work for IE6”.

Page 25: Fowa2010 progressive-enhancement

Instead it is “test for support before you apply”

http://www.modernizr.com/

http://github.com/phiggins42/has.js

Page 26: Fowa2010 progressive-enhancement

[geomaker]

http://icant.co.uk/geomaker/index.php

Page 27: Fowa2010 progressive-enhancement

http://uk-house-prices.com/

Page 28: Fowa2010 progressive-enhancement

For a lot of new developers, this looks like extra effort.

Page 29: Fowa2010 progressive-enhancement

Instead we produce low quality fallbacks.

Page 30: Fowa2010 progressive-enhancement

New technologies can be safely applied with a few lines of code.

Page 31: Fowa2010 progressive-enhancement

Take local storage for example. 15MB cookies!

Page 33: Fowa2010 progressive-enhancement
Page 34: Fowa2010 progressive-enhancement

We built all these cool widgets...

Page 35: Fowa2010 progressive-enhancement
Page 36: Fowa2010 progressive-enhancement

Wouldn’t it be great to just be able to use them?

Page 37: Fowa2010 progressive-enhancement
Page 39: Fowa2010 progressive-enhancement

node.js + express.js + YUI3 = Progressive Enhancement win!

Page 40: Fowa2010 progressive-enhancement

http://www.yuiblog.com/blog/2010/09/29/video-glass-node/

Page 41: Fowa2010 progressive-enhancement

Even more interesting - today’s widgets are already tomorrow’s native controls.

Page 42: Fowa2010 progressive-enhancement

type=”range”

type=”date”

type=”color”

type=”file”

<datalist>

Page 43: Fowa2010 progressive-enhancement

Re-use of learnings.

Page 44: Fowa2010 progressive-enhancement

CSS3Animation

Transitionand

Page 45: Fowa2010 progressive-enhancement
Page 46: Fowa2010 progressive-enhancement

On-demand loading allows for enhanced support without overhead.

Page 47: Fowa2010 progressive-enhancement

YUI’s intrinsic Loader now supports capability‐based loading. We’re leveraging this new feature to avoid shipping IE‐specific code in the Dom module to non‐IE browsers, a performance/k‐weight boost that will benefit all users of modern browsers with no code change required.

http://www.yuiblog.com/blog/2010/07/26/3-2-0pr1/

Page 48: Fowa2010 progressive-enhancement

Last but not least, it is time to think about our development stack.

Page 51: Fowa2010 progressive-enhancement

The future of web apps is being forged right now.

Page 52: Fowa2010 progressive-enhancement

Be part of the movement for a better web for all.

Page 53: Fowa2010 progressive-enhancement

Come and talk to us, to Google, to Apple, to Mozilla, to Opera, to Microsoft...Your input matters!

Page 54: Fowa2010 progressive-enhancement

Christian Heilmann http://wait-till-i.com http://developer-evangelism.com http://twitter.com/codepo8

Thanks!