Try to learn something about everything

My Way: Ruby, Sinatra, Heroku

RubyLearning just had a nice one week introductory course on Sinatra, a DSL for easily creating web applications. The next batch will start on May 2nd (and I’ll probably be around as a mentor again), you can join here if you are interested.

Anyway, since it’s so easy to write applications with Sinatra, you probably don’t want to waste time deploying them. That’s where Heroku comes into play, a Ruby hosting platform which modeled it’s workflow around git. In my – still somewhat limited – experience working with Heroku is painless and feels very natural, kudos to the team for providing us with such a nice option for hosting Rack based apps! In fact I liked Heroku so much, that I wrote a patch for Aaron Quint‘s sinatra-gen which will initialize git and create your app on Heroku for you. It’s not in the main branch yet, but Aaron said he likes the idea and that he will include it. Up until then you can get my version from here.

Update: Said patch – in slightly modified form – is now part of mainline sinatra-gen, so I recommend getting the “official” version, not mine.

Oh yeah, once you are done creating all this shiny new webapps in Sinatra, don’t forget to take some snapshots of them with snapurl, another nifty little app I recently wrote a small patch for.