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
Russel Winder:Python is a High Performance Programming Language, High Performance Python
Russel Winder : 31st Jan 2012
View Podcast: Python is a High Performance Programming Language,
Chris Adams:What's been happening in Wordpress , What's happening in Wordpress
Chris Adams : 19th Jan 2012
View Podcast: What's been happening in Wordpress ,
Mark Mitchell:Wordpress Responsive Design, Wordpress Responsive Design
Mark Mitchell : 19th Jan 2012
View Podcast: Wordpress Responsive Design,
Peter Westwood:Scaling WordPress, Scaling WordPress
Peter Westwood : 19th Jan 2012
View Podcast: Scaling WordPress,
Dave Springgay :HTML5, Android Webview and java bridging, HTML5 & Android Webview
Dave Springgay : 19th Jan 2012
View Podcast: HTML5, Android Webview and java bridging,
Jonathan Anthony :Titatnium & PhoneGap, Titatnium & PhoneGap...
Jonathan Anthony : 19th Jan 2012
View Podcast: Titatnium & PhoneGap,
Andy Richardson:Trends and Patterns, Trends & Patterns
Andy Richardson : 10th Jan 2012
View Podcast: Trends and Patterns,
Chris McGrath:I18n, I18n
Chris McGrath : 9th Jan 2012
View Podcast: I18n,
Joe Corcoran:Judge: Client side form validation for Rails 3, Judge
Joe Corcoran : 9th Jan 2012
View Podcast: Judge: Client side form validation for Rails 3,
Christian  Heilmann:Rethinking User Registration with BrowserID, BrowserID
Christian Heilmann : 13th Dec 2011
View Podcast: Rethinking User Registration with BrowserID,
 :Usable APIs, Usable APIs
: 12th Dec 2011
View Podcast: Usable APIs,
 :Hypermedia as the Engine of Application State, HATEOS
: 12th Dec 2011
View Podcast: Hypermedia as the Engine of Application State,
Chris O Davies:Introduction to User Group and Heroku, Heroku platform
Chris O Davies : 5th Dec 2011
View Podcast: Introduction to User Group and Heroku,
Nicola Tassini:Deploying Java Apps to Heroku, Deploying Java Apps to Heroku
Nicola Tassini : 5th Dec 2011
View Podcast: Deploying Java Apps to Heroku,
John Beynon:The Why, What and How of Heroku, The Why, What and How of Heroku
John Beynon : 5th Dec 2011
View Podcast: The Why, What and How of Heroku,
OTHER JAVASCRIPT & HTML5 EVENTS
Official RNIB Accessibility Hackathon, Official RNIB Accessibility Hackathon
CONFERENCE (2 DAYS)
London, Saturday, February 11th BOOK NOW!
Russel Winder:Russel Winder's Python Workshop,  Russel Winder's Python Workshop
4 DAY COURSE. Featuring Russel Winder
London, Monday, February 13th
Damjan Vujnovic Coding Kata,  Coding Kata
FREE EVENT: In The Brain of Damjan Vujnovic
London, Wednesday, February 15th
London Ruby User Group:LRUG Feb Lightning Talks, London Ruby User Group
FREE EVENT: LRUG lightning
London, Tuesday, February 21st
QCon London 2012, QCon London 2012
CONFERENCE (3 DAYS)
London, Wednesday, March 7th BOOK NOW!
Elevate Events:Elevate Launch Event, Elevate Events
FREE EVENT: elevate-launch-event
London, Wednesday, March 7th
London Ajax User Group:This is Dart , London Ajax User Group
FREE EVENT: Dart
London, Tuesday, March 13th
Peter Lubbers:Peter Lubbers' HTML5 “Fast Track” - IN NYC,  Peter Lubbers' HTML5 Fast Track Course
2 DAY COURSE. Featuring Peter Lubbers
New York, Wednesday, March 14th
© 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