background preloader


Facebook Twitter

15 Things for a Ruby Beginner. The following is a post I had recently sent the Bangalore Ruby User Group.

15 Things for a Ruby Beginner

It has been slightly modified to address a larger audience. There were many Ruby beginners in last week's meetup, and the common question we heard was 'after the very basics, what next? ' The best way to learn Ruby best practices is to pair with an experienced dev; the way I learned was by inheriting a reasonably small, but well-written codebase from an amazing colleague. In the absence of either, here is a checklist of 15 things (since 'N things that you need to know about X' is the in-thing these days!)

That I'd recommend a Ruby beginner to consider: 1. Our very own has a Ruby primer which was written for exactly this purpose; we open our inbox everyday to gushing feedback from people who've found it to be a great way to learn Ruby. also has a basic introduction to Ruby, and has been around longer. I have heard good things about Learn Ruby the Hardway, but haven't tried it out myself. CouchDB with CouchRest in 5 minutes. The other night, during our monthly SDRuby meetup, lots of people were very interested in learning more about CouchDB and Ruby.

CouchDB with CouchRest in 5 minutes

I tried to show what Couch was all about but I didn’t have time to show how to use CouchDB with Ruby. Here is me trying to do that in 10 minutes or less. I’ll assume you don’t have CouchDB installed. Install CouchDB, if you are on MacOSX, you are in luck, download and unzip the standalone package called CouchDBX. That’s it you have couch ready to go, press play and play with the web interface. Next, let’s write a quick script. First, let’s install CouchRest: $ sudo gem install couchrest Now, let’s open a new file and write our script. In line 4 and 5 we are just setting up the server(by default, localhost is being used). SERVER = DB = SERVER.database! Then, we define your ‘model’, we set the default database to use and define a list of properties. Property :last_name, :alias => :family_name Line 14 does something that might seem strange at first. Mercury. Alexstaubo/sublime_text_alternative_autocompletion. Ruby on Rails Tutorial: Learn Rails by Example book and screencasts by Michael Hartl.

Michael Hartl Contents Foreword My former company (CD Baby) was one of the first to loudly switch to Ruby on Rails, and then even more loudly switch back to PHP (Google me to read about the drama).

Ruby on Rails Tutorial: Learn Rails by Example book and screencasts by Michael Hartl

This book by Michael Hartl came so highly recommended that I had to try it, and the Ruby on Rails Tutorial is what I used to switch back to Rails again. Though I’ve worked my way through many Rails books, this is the one that finally made me “get” it. The linear narrative is such a great format. Enjoy! Derek Sivers ( Founder, CD Baby Acknowledgments The Ruby on Rails Tutorial owes a lot to my previous Rails book, RailsSpace, and hence to my coauthor Aurelius Prochazka. I’d like to acknowledge a long list of Rubyists who have taught and inspired me over the years: David Heinemeier Hansson, Yehuda Katz, Carl Lerche, Jeremy Kemper, Xavier Noria, Ryan Bates, Geoffrey Grosenbach, Peter Cooper, Matt Aimonetti, Gregg Pollack, Wayne E.

About the author Copyright and license 1.1 Introduction. Ruby Patterns from GitHub's Codebase. Ruby on Windows. Why I Prefer Ruby on Rails over CakePHP by Jimmy Z. Last year, I had a goal to learn Ruby on Rails and build an application in that framework.

Why I Prefer Ruby on Rails over CakePHP by Jimmy Z

By learning CakePHP, I was able to wrap my mind around the rails framework concepts and make that transition a little easier. This year, I have made the full plunge into the Ruby on Rails, and I absolutely love it. As I’ve made the transition from php to ruby and from CakePHP to Ruby On Rails, I’ve written down some of the reasons why I now use Ruby on Rails over CakePHP. [note: I still prefer to use CakePHP over no framework if a client requests an application be written in php. However, when we have the option to start the project in Rails, we really push for rails.]

Here are some of the reasons why I prefer Ruby on Rails over CakePHP: Rails doesn’t require you to grab all of your data in the controller When working with CakePHP, you must retrieve all of your data from the database in the controller and pass it all to your View. Author.articles.first.comments.first.email_address One-way routing. Try Ruby. Ruby Kickstart. Why’s (poignant) guide to ruby.

Read This Paragraph At my local Barnes and Noble, there is a huge wall of Java books just waiting to tip over and crush me one day.

why’s (poignant) guide to ruby

And one day it will. At the rate things are going, one day that bookcase will be tall enough to crush us all. It might even loop the world several times, crushing previous editions of the same Java books over and over again. And This Paragraph Too.