PDA

View Full Version : Learn Sinatra - An Awesome Ruby Web Framework



daz4126
January 17th, 2010, 09:23 PM
My New Year's resolution is to learn Sinatra (a cool micro-framework that uses Ruby). I've set up a blog that you you can see here:

http://ididitmyway.heroku.com/

The first few posts cover:

What Is Sinatra
Installing Sinatra
Using Git for Source Control
Writing A Simple Sinatra App
Hosting A Sinatra App on the Web (for free)

This should help people get started with putting some dynamic sites on the web with a simple, but powerful framework. Better still, it is all written from the perspective of using Ubuntu, so everything should work fine.

I'd appreciate any comments or feedback.

cheers,

DAZ

mconway
February 1st, 2010, 07:01 AM
Glad to see another Ruby/Sinatra user on the Ubuntu Forums! I love using Sinatra, and along with Heroku it couldn't be easier or more fun.

Here are some cool Sinatra apps that are out there already: http://www.sinatrarb.com/wild.html

daz4126
February 7th, 2010, 04:02 PM
Cheers for this Matt. Hope you find I Did It My Way Useful. I've found Ubuntu, Sinatra and Heroku a perfect fit for web development ... so fast and easy.

DAZ

nikhilbhardwaj
May 3rd, 2010, 09:24 PM
great job
i'm just starting to learn ruby and web development

your blog has been of great help to me

daz4126
May 28th, 2010, 06:43 PM
Hi nikhilbhardwaj,

Thanks for your comment. Glad you like the blog ... I hope you continue to find it useful (There should be some more stuff on it soon!)

cheers,

DAZ

adamsiddhi
June 11th, 2010, 01:49 PM
Adam Keyes did a 2 video screen cast on Sinatra. Its pretty good as far as I can tell. I plan on checking it out.

http://www.pragprog.com/screencasts/v-aksinatra/classy-web-development-with-sinatra

Also Rubylearning.org runs a free Sinatra course with eBook. I signed up for that last month but got stuck in Windows. Was having a problem with the shotgun method for refreshing the browser. I started searching for answers on #sinatra IRC channel and multiple people told me that developing Ruby/Sinatra/Rails in Windows leads to lots of frustration. So I switched to Xubuntu 10.04 and am ready to roll.

daz4126
June 15th, 2010, 09:32 PM
Both of these are great resources, I've used them both.
I've put more Sinatra links at this post here (http://ididitmyway.heroku.com/past/2010/1/28/sinatra_sites/), but I'm sure there are more now. Hopefully there will be a full book in the near future.

DAZ

adamsiddhi
June 15th, 2010, 09:49 PM
cool daz. i also found this link here:
Delving into more Ruby Syntax and Understanding Rack & Sinatra (http://newtoruby.com/delving-into-more-ruby-syntax-and-understandi?c=1) which seems like a good intro for beginners (which is me :-)

I found that resource at http://coder.io/ which is a new content aggregator specifically for developers. Seems like a promising service.

keep up the great work Daz!

ja660k
June 16th, 2010, 06:44 AM
so which is faster? Rails or Sinatra?

daz4126
July 27th, 2010, 10:26 AM
@ja660k

Sinatra has a much smaller codebase and footprint than Rails, so I would guess that it would be faster, but it would probably depend on the app.

DAZ

daz4126
July 27th, 2010, 10:28 AM
@adamsiddhi

Thanks for the reply and links - very useful!

DAZ

jvanoort05
October 31st, 2011, 05:03 PM
Hi All,

I just started playing with Sinatra and saw your post. I put my first app togeather. You can demo it here: http://cedarcreekit.com/labs/flip_text.

I personally think Sinatra is really cool. It took me less than 2 hours to put this app together. Anyways let me know what you think of it and if any of you are interested I might put the source code up on GitHub.


Cheers,
jvanoort