Upgrade to Pro — share decks privately, control downloads, hide ads and more …

My API Experiences with Ruby & Sinatra

My API Experiences with Ruby & Sinatra

A brief overview of why I chose Ruby and Sinatra to build some APIs, and what I learned along the way.

drydevelopment

April 18, 2012
Tweet

Transcript

  1. My Motivations Building a web app for managing baseball teams

    and stats. Mobile, Tablet, 3rd party integration? StartupBus/Wastebits building a platform for the waste industry. Desire to learn more about APIs and distributed architectures. Wednesday, April 18, 12
  2. Why Sinatra? It’s Rack based. It’s simple. It’s fast. I

    know Ruby. http://www.sinatrarb.com/ Wednesday, April 18, 12
  3. Why DataMapper? One API for a variety of datastores. Less

    need for writing migrations. Data integrity is important. Lazy loading is built in. Wednesday, April 18, 12
  4. Things I’ve Learned There’s a learning curve to working with

    API’s. Simple is better. HTTParty-on, Wayne. Rabl is a nice templating language. User/API authentication isn’t easy. Wednesday, April 18, 12