things you can use (by the yahoo developer network and friends)

81
Chris&an Heilmann ‐ YDN Developer Evening, Oslo, Norway ‐ December 2009 Things you can use ...provided by the Yahoo Developer Network and friends.

Upload: christian-heilmann

Post on 20-Jan-2015

4.481 views

Category:

Education


0 download

DESCRIPTION

An introduction to the developer offers of Yahoo given as a talk at the Yahoo/Opera developer evening in Oslo, Norway December 2009. And yes, it was cold!

TRANSCRIPT

Page 1: Things you can use (by the Yahoo Developer Network and friends)

Chris&anHeilmann‐YDNDeveloperEvening,Oslo,Norway‐December2009

Thingsyoucanuse...providedbytheYahooDeveloperNetwork

andfriends.

Page 2: Things you can use (by the Yahoo Developer Network and friends)

Webdevelopmentisconfusingenoughasitis.

Page 3: Things you can use (by the Yahoo Developer Network and friends)

Thereisnoneedtomakeitharderbynotusingwhathasbeendoneforus.

Page 4: Things you can use (by the Yahoo Developer Network and friends)

Today,IamgoingtoshowyousomethingsthatyoucanuseimmediatelytobuildfasterandbeIerwebproducts.

Page 5: Things you can use (by the Yahoo Developer Network and friends)

Quicklyaboutme:

Page 7: Things you can use (by the Yahoo Developer Network and friends)

Quicklyaboutme:hIp://developer.yahoo.com

Page 8: Things you can use (by the Yahoo Developer Network and friends)

Learningthebasics

10 INPUT A$20 PRINT A$30 PRINT “ROCKS!”40 GOTO 10

Page 9: Things you can use (by the Yahoo Developer Network and friends)

WaSP Interact

hIp://interact.webstandards.org/

Page 10: Things you can use (by the Yahoo Developer Network and friends)

Opera Web Standards curriculum

hIp://www.opera.com/company/educa&on/curriculum/

Page 12: Things you can use (by the Yahoo Developer Network and friends)

Nomorecopy&pasteandtrialanderror.

Page 13: Things you can use (by the Yahoo Developer Network and friends)

Star&ngwithacleancanvas.

hIp://developer.yahoo.com/yui/ar&cles/gbs/

Page 14: Things you can use (by the Yahoo Developer Network and friends)

Websitesarenotmeanttolookandworkthesameeverywhere.

Page 15: Things you can use (by the Yahoo Developer Network and friends)

Onthecontrary‐theabilitytoaccustomtheinterfacetodifferentuseragentsiswhatmakeswebdevelopmentsopowerful.

Page 16: Things you can use (by the Yahoo Developer Network and friends)

CSSframeworksandfrontendlibraries

(...)

Page 17: Things you can use (by the Yahoo Developer Network and friends)

Librariesmakeourjobpredictableandallowustousewebstandardswithoutcateringforbrowsers.

Page 18: Things you can use (by the Yahoo Developer Network and friends)

Ifyoubuildyourcodebasedonlibrariesyoucanfixyourproductforthenextbrowserbyupgradingthelibrary.

Page 19: Things you can use (by the Yahoo Developer Network and friends)

Ifyouchoosetodoeverythingyourself‐goodluck.

Page 20: Things you can use (by the Yahoo Developer Network and friends)

Buildinginterfacesthatwork

Page 23: Things you can use (by the Yahoo Developer Network and friends)

Usingtheweb.

CMS

Page 24: Things you can use (by the Yahoo Developer Network and friends)
Page 25: Things you can use (by the Yahoo Developer Network and friends)

Thinkingdatafirst.

Page 26: Things you can use (by the Yahoo Developer Network and friends)

ThecomplexityofyourproductincreaseswiththenumberofAPIsyouuse.

Page 27: Things you can use (by the Yahoo Developer Network and friends)

EveryAPIhasdifferentwaystoauthen&cate,expectsdifferentparametersandreturnsdataindifferentformats.

Page 29: Things you can use (by the Yahoo Developer Network and friends)

FindLondon.

select*fromgeo.placeswheretext="london,uk"

Page 30: Things you can use (by the Yahoo Developer Network and friends)

DefineLondonandgetphotostakenthere.

select*fromflickr.photos.searchwherewoe_idin(selectwoeidfromgeo.placeswheretext="london")

Page 31: Things you can use (by the Yahoo Developer Network and friends)

Getalltheinforma&onaboutthesephotos.

select*fromflickr.photos.infowherephoto_idin(selectidfromflickr.photos.searchwherewoe_idin(selectwoeidfromgeo.placeswheretext="london"))

Page 32: Things you can use (by the Yahoo Developer Network and friends)

Getonlywhatweneed.

selectfarm,id,secret,owner.realname,server,&tle,urls.url.contentfromflickr.photos.infowherephoto_idin(selectidfromflickr.photos.searchwherewoe_idin(selectwoeidfromgeo.placeswheretext="london"))

Page 33: Things you can use (by the Yahoo Developer Network and friends)

SelectformatJSON,defineacallbackandcopyandpastetheURL.

hIp://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20flickr.photos.info%20where%20photo_id%20in%20(select%20id%20from%20flickr.photos.search%20where%20woe_id%20in%20(select%20woeid%20from%20geo.places%20where%20text%3D%22london%22))&format=json&diagnos&cs=false&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback=flickr

Page 34: Things you can use (by the Yahoo Developer Network and friends)

CopyintoascriptsrcandwriteafewlinesofDomScrip&ng.

Page 36: Things you can use (by the Yahoo Developer Network and friends)

IsthisYahooonly?

Page 37: Things you can use (by the Yahoo Developer Network and friends)

Anydataonthewebwilldo.

select*from

atomcsvfeedhtmljsonmicroformatsrssxml

Page 39: Things you can use (by the Yahoo Developer Network and friends)

Anydataonthewebwilldo.

hIp://isithackday.com/hacks/scraping‐with‐yql/

Page 40: Things you can use (by the Yahoo Developer Network and friends)

YoucanalsoaddyourowndatabyprovidingasimpleXMLschemacalledanopentable.

hIp://developer.yahoo.com/yql/guide/yql‐opentables‐chapter.html

Page 41: Things you can use (by the Yahoo Developer Network and friends)

MovingJavaScripttotheserverside.

Page 42: Things you can use (by the Yahoo Developer Network and friends)

YQLopentablescanhaveembeddedJSthatrunsontheYQLserver(withRhino)andsupportsXMLna&velywithE4X..

hIp://developer.yahoo.com/yql/guide/yql‐execute‐chapter.html

Page 43: Things you can use (by the Yahoo Developer Network and friends)
Page 44: Things you can use (by the Yahoo Developer Network and friends)

FlickrphotosasULs

select*fromflickr.photolistwheretext="me"andloca&on="uk"andamount=20

Page 45: Things you can use (by the Yahoo Developer Network and friends)

DisplaywithJavaScript

Page 46: Things you can use (by the Yahoo Developer Network and friends)

DisplaywithPHP

Page 47: Things you can use (by the Yahoo Developer Network and friends)

Joinus!hIp://github.com/yql/yql‐tables

Page 48: Things you can use (by the Yahoo Developer Network and friends)

Documenta&onhIp://developer.yahoo.com/yql/

Page 49: Things you can use (by the Yahoo Developer Network and friends)

Buildingwithblocks.

Page 50: Things you can use (by the Yahoo Developer Network and friends)

http://developer.yahoo.com/yui/grids/builder/

BuildaCSSlayoutthatworks.

Page 51: Things you can use (by the Yahoo Developer Network and friends)

http://isithackday.com/hacks/cantine/index.php?loc=covent+garden

hIp://isithackday.com/hacks/can&ne/

Usealreadyexis&ngwidgets.

Page 54: Things you can use (by the Yahoo Developer Network and friends)
Page 57: Things you can use (by the Yahoo Developer Network and friends)

Wannagetsuperfamous?

Page 58: Things you can use (by the Yahoo Developer Network and friends)

YAPistheplalormhIp://developer.yahoo.com/yap/guide/yap‐overview.html

Page 60: Things you can use (by the Yahoo Developer Network and friends)
Page 61: Things you can use (by the Yahoo Developer Network and friends)
Page 64: Things you can use (by the Yahoo Developer Network and friends)

YMLTags

yml:nameyml:profile‐picyml:pronounyml:shareyml:swfyml:user‐badge

yml:ayml:adyml:audioyml:formyml:friend‐selectoryml:if‐envyml:message

Page 65: Things you can use (by the Yahoo Developer Network and friends)

BuildingaforminYML.scripttocall elementtoreplace

Page 66: Things you can use (by the Yahoo Developer Network and friends)
Page 67: Things you can use (by the Yahoo Developer Network and friends)

AverysimpleAPIontopofYQL

Page 68: Things you can use (by the Yahoo Developer Network and friends)
Page 70: Things you can use (by the Yahoo Developer Network and friends)
Page 71: Things you can use (by the Yahoo Developer Network and friends)
Page 72: Things you can use (by the Yahoo Developer Network and friends)
Page 73: Things you can use (by the Yahoo Developer Network and friends)
Page 74: Things you can use (by the Yahoo Developer Network and friends)
Page 76: Things you can use (by the Yahoo Developer Network and friends)
Page 77: Things you can use (by the Yahoo Developer Network and friends)

YUI is the system that Yahoo uses to build itswebsites.It isconstantlytestedtoworkforthelargest amount of users, free, open source andcoverseverythingfromdesignpaIernstoout‐of‐the‐boxwidgets. It ismodularand you can useonly what you need. You can either host ityourself or get it fromanetwork ofdistributedservers.

YUIinanutshell...

Page 78: Things you can use (by the Yahoo Developer Network and friends)

YQLisawebservicethatallowsyoutomash‐upanydataonthewebfromvarioussourceswithasimple SQL‐style language. You can filter thedata down to what you need and you canconvert the data with server‐side JavaScriptbefore returning it. Data providers can use YQLtopublishanAPIon thewebon topofYahoo’sinfrastructureandcloudstorage.

YQLinanutshell

Page 79: Things you can use (by the Yahoo Developer Network and friends)

YAP is the Yahoo Applica&on Plalorm whichallowsyou tobuildapplica&onsthat runon theYahoohomepageandsoonotherproper&es.Youcan dive into Yahoo’s social graph to promoteyour applica&ons and you can create highlysecurewebappsasYAPusesCajatoensurecodequality.

YAPinanutshell

Page 80: Things you can use (by the Yahoo Developer Network and friends)

...andIamspent!

Page 81: Things you can use (by the Yahoo Developer Network and friends)

Christian Heilmann

http://wait-till-i.com

http://developer-evangelism.com

http://twitter.com/codepo8