58
Building web applications using the web. Christian Heilmann, Brazil Open Hack Day, March 2010, Sao Paulo, Brazil

Building web applications using the web

Embed Size (px)

DESCRIPTION

Introduction on how to build web applications quickly by using the web and YQL. Delivered at Open Hack Day Brazil 2010

Citation preview

Page 1: Building web applications using the web

Building web applications

using the web.Christian Heilmann, Brazil Open Hack Day, March 2010, Sao Paulo, Brazil

Page 2: Building web applications using the web

Web development is becoming more and more easy.

Page 3: Building web applications using the web

The reason is that the web itself became a platform to build with.

Page 4: Building web applications using the web

Another reason is that we have pre-built blocks that can be put together quickly to create something.

Page 5: Building web applications using the web

Something that works, is easy to maintain and can deal with change.

Page 6: Building web applications using the web

The main trick to building great web products is shifting your point of view.

Page 7: Building web applications using the web

The interface is not the start.

Page 8: Building web applications using the web

The interface comes at the end - as it needs the most work.

Page 9: Building web applications using the web

What you start with is information and a goal.

Page 10: Building web applications using the web

In other words:

What does your app deal with and how do you make it useful for the end user?

Page 11: Building web applications using the web

Let’s see some examples of that:

Page 13: Building web applications using the web

http://keywordfinder.org

Keywordfinder

Page 18: Building web applications using the web

The trouble with data:You need to get access to the data sources (API keys, authentication)You need to get data in formats that are easy to use for your use caseYou need to filter the data down to what you really want to have in the end. All of the above multiplies in annoyance with the amount APIs you use.

Page 19: Building web applications using the web

A great workaround:

http://developer.yahoo.com/yql/console/

Page 20: Building web applications using the web

YQL turns the web into your database.

select * from {datasource} where {conditions}

Page 21: Building web applications using the web

select * from flickr.photos.search where text="donkey"

Page 22: Building web applications using the web

select * from google.news where q="healthcare"

Page 23: Building web applications using the web

select * from query.multi where queries in ('select * from nyt.article.search where query="healthcare"','select * from microsoft.bing.news where query="healthcare"','select * from google.news where q="healthcare"'

)

Page 24: Building web applications using the web

select content from html where url="http://www.foxnews.com/" and xpath="//h2/a"

Page 25: Building web applications using the web

select * from google.translate where q in (select content from html where url="http://www.foxnews.com/" and xpath="//h2/a"

) and target="pt"

Page 26: Building web applications using the web

insert into wordpress.post (title, description, blogurl, username, password) values ("Test Title", "This is a test body", "http://yqltest.wordpress.com", "yqltest", "password")

Page 27: Building web applications using the web

Using YQL has a lot of benefits:

No time wasted reading API docsUsing the console makes creating complex queries dead easy.Data filtering down to the least amount necessary.Fast pipes.Caching + converting Server-side JavaScript

Page 28: Building web applications using the web

Using YQL is easy! (PHP)

Page 29: Building web applications using the web

Using YQL is easy! (JavaScript)

Page 30: Building web applications using the web
Page 32: Building web applications using the web

Starting with the data made me independent of the final platform.

Page 33: Building web applications using the web
Page 35: Building web applications using the web

The next trick is to use libraries to make the problem of browsers vanish.

Page 36: Building web applications using the web

Libraries.

(...)

Page 39: Building web applications using the web

And tools that work around cross-platform issues.

Page 40: Building web applications using the web

Appcelerator Titanium

http://www.appcelerator.com/

Page 41: Building web applications using the web

If you build your app, start with interfaces that work everywhere.

Page 42: Building web applications using the web
Page 45: Building web applications using the web

When you have that - enhance it to make the experience smoother.

Page 46: Building web applications using the web
Page 50: Building web applications using the web

Data to be used can be in “offline” formats - the web will take care of that.

Page 51: Building web applications using the web

http://winterolympicsmedals.com/

Page 53: Building web applications using the web
Page 56: Building web applications using the web

So, think of a problem to solve and then start gathering your data.

Page 57: Building web applications using the web

Then use the blocks I talked about to put the solutions together.

Page 58: Building web applications using the web

  Chris:an Heilmann  h%p://wait‐:ll‐i.com   h%p://developer‐evangelism.com  h%p://twi%er.com/codepo8   

Thanks!