HOME SCALA & F# JAVA .NET WEB GROOVY & GRAILS ANDROID & IOS NOSQL ARCHITECTURE AGILE & SCRUM AGILE DEVELOPER  
London Ruby User Group:Abstractions For Website APIs
Abstractions For Website APIs
Paul Mison is going to do a short talk on libraries and abstractions for website APIs. Specifically how he thinks they should be written (and how he thinks they shouldn't be). The talk will mostly focus on Flickr, so an understanding of Flickr's API and the existing abstractions might be of use.

Review:
In this LRUG session, Paul Mison talks about avoiding API library anti-patterns. Flickr, the photo sharing site, allows raw API documentation. Thankfully, people have written Fickr libraries to help further manipulation, but several of them have not been updated. Taking an example of one library that needs updating, Paul shows that it requires correcting each method individually - this is a problem with API abstractions. Updating involves a long and laborious process.

Thankfully there is a solution: first, the Request can be fixed from the convenience method (since all of them are documented). Then the response can be fixed. Flickr returns JSON (where O = Object) hence the response is an object. To return an API response in JSON format, one simply needs to send a parameter “format” in the request with a value “JSON”, and Flickr raw does that. Plus, you have the added benefit of getting extra parameters with JSON. The key is to offer simple access wrappers to users and make it well documented; to let Ruby do the work; and to use JSON, not XML, in your return format so you’ll always get something back.
Review by: Micky Mollallegn


ABOUT PAUL MISON
Paul is a web developer who's been using Macs since 1996. His servers run Linux. He only uses Windows when...
More about Paul Mison

ABOUT THE LONDON RUBY USER GROUP
LRUG is the London Ruby User Group; a community of ruby developers based in and around London. We meet up at least once a month; on the 2nd Wednesday of the month we have meetings with talks, demos and such-like and then we have pub-based meetups organised on an ad-hoc basis (roughly half-way between meetings).
More about the London Ruby User Group
PODCAST ABSTRACTIONS FOR WEBSITE APIS

This session took part at the LRUG January. You can view the other 1 podcast here.
JAVASCRIPT & HTML5 PODCASTS
Christophe Coenraets:Cross-Platform Mobile Apps with HTML, JavaScript and PhoneGap, Cross-Platform Mobile Apps
Christophe Coenraets : 24th May 2012
View Podcast: Cross-Platform Mobile Apps with HTML, JavaScript and PhoneGap,
Paul Ardeleanu:Native vs HTML5 - why, when and how to use them, Native vs HTML5
Paul Ardeleanu : 22nd May 2012
View Podcast: Native vs HTML5 - why, when and how to use them,
Luke Daley: Managing JavaScript with Gradle, JavaScript with Gradle
Luke Daley : 22nd May 2012
View Podcast:  Managing JavaScript with Gradle,
Elise   Huard:Ruby’s bin men: a closer look at the garbage collector, Ruby’s bin men: a closer look at the gar
Elise Huard : 14th May 2012
View Podcast: Ruby’s bin men: a closer look at the garbage collector,
Tom Stuart:Dependency Injection, the Dependency Inversion Principle, and You, Dependency Injection
Tom Stuart : 14th May 2012
View Podcast: Dependency Injection, the Dependency Inversion Principle, and You,
Tom McMillen:CouchDB at the Hut Group, CouchDB at the Hut Group
Tom McMillen : 9th May 2012
View Podcast: CouchDB at the Hut Group,
John Zablocki:The Couchbase Server Tutorial, The Couchbase Server Tutorial
John Zablocki : 9th May 2012
View Podcast: The Couchbase Server Tutorial,
Peter Martischka:Etherpad Lite: Make Collaborative Editing the Standard on the Web, Etherpad Lite
Peter Martischka : 8th May 2012
View Podcast: Etherpad Lite: Make Collaborative Editing the Standard on the Web,
Tiago Rodriguez:Continuously integrated JS development with Buster.js and Phantom.js, Buster.js and Phantom.js
Tiago Rodriguez : 8th May 2012
View Podcast: Continuously integrated JS development with Buster.js and Phantom.js,
Gavin  Bell:Is Everything Social?, Is Everything Social?
Gavin Bell : 8th May 2012
View Podcast: Is Everything Social?,
Brian Sletten:Information Resources : Moving Beyond Objects, Moving Beyond Objects
Brian Sletten : 3rd May 2012
View Podcast: Information Resources : Moving Beyond Objects,
Brian Sletten:Information Resources: Moving Beyond Objects (Part 2), Moving Beyond Objects
Brian Sletten : 3rd May 2012
View Podcast: Information Resources: Moving Beyond Objects (Part 2),
Brian Sletten:Testing REST with BDD, REST & BDD
Brian Sletten : 2nd May 2012
View Podcast: Testing REST with BDD,
Dmitry Buzdin:State of the Web, State of the Web
Dmitry Buzdin : 1st May 2012
View Podcast: State of the Web,
Lukas  Oberhuber:Lightning Talks: Simply Business, Simply Business
Lukas Oberhuber : 23rd Apr 2012
View Podcast: Lightning Talks: Simply Business,
OTHER JAVASCRIPT & HTML5 EVENTS
Progressive .NET Tutorials 2012, Progressive .NET Tutorials 2012
CONFERENCE (3 DAYS)
London, Tuesday, May 29th BOOK NOW!
The London Python Group:A Python code review of multilango.com, The London Python Group
FREE EVENT: Python code review
London, Wednesday, June 6th
Dutch Mobile Conference, Dutch Mobile Conference
CONFERENCE (3 DAYS)
Amsterdam , Thursday, June 7th BOOK NOW!
London Ruby User Group:ElasticSearch, London Ruby User Group
FREE EVENT: ElasticSearch
, Monday, June 11th
Gavin  Bell:Gavin Bell's Creating Social Applications,  Gavin Bell's Social Applications
2 DAY COURSE. Featuring Gavin Bell
London, Thursday, June 14th
QCon New York 2012, QCon New York 2012
CONFERENCE (3 DAYS)
New York, Monday, June 18th BOOK NOW!
:Typesafe's Fast Track to Play,  Typesafe's Fast Track to Play
1 DAY COURSE.
London, Friday, June 22nd
Damjan Vujnovic:Damjan Vujnovic's Advanced JavaScript Workshop,  Damjan Vujnovic's Advanced JavaScript Workshop
2 DAY COURSE. Featuring Damjan Vujnovic
London, Monday, June 25th
© Copyright 2003-2011, Skills Matter Ltd
  Web development by You In Control
About Us  Jobs  Find Us  Meeting & Training Rooms  Newsletter  Jobs: Sales Executive  Jobs: Student SkillsCaster  jobs - junior event coordinator  Speed Coding 2011  Open Source Journal  Ticket Raffle  Agile Expert Series  Jobs: Sponsorship Development  jobs: Marketing & Sales Graduate Internship