How to write RoR code

Hi all

I took a look to several examples of RoR on different web sites, and I
found that it is hard to write RoR code, in RoR, because I do not
understand all the codes used on the source code.

jsn

On Jul 28, 2006, at 10:55 PM, Jose P. wrote:

Hi all

I took a look to several examples of RoR on different web sites, and I
found that it is hard to write RoR code, in RoR, because I do not
understand all the codes used on the source code.

jsn

I felt the same way, until I swallowed my pride and bought the book.
Well, actually, I started by learning some Ruby (www.rubyquiz.org is
nice for this). Another thing I did was to write all my shell
scripts in ruby. Between Dir#[] and the backtick (`) operator, I now
find shell scripts much easier to write in Ruby than I ever did in
bash. And it was good practice.

But the rails stuff didn’t really start to click until I started
reading the Agile Web D. with Rails book. It’s really worth
the ~$30 even if you’re just playing around with Rails. I have yet
to find what I would call a really good beginner book online.

-Mat

Hi –

On Fri, 28 Jul 2006, Mat S. wrote:

I felt the same way, until I swallowed my pride and bought the book. Well,
actually, I started by learning some Ruby (www.rubyquiz.org is nice for
this). Another thing I did was to write all my shell scripts in ruby.
Between Dir#[] and the backtick (`) operator, I now find shell scripts much
easier to write in Ruby than I ever did in bash. And it was good practice.

But the rails stuff didn’t really start to click until I started reading the
Agile Web D. with Rails book. It’s really worth the ~$30 even if
you’re just playing around with Rails. I have yet to find what I would call
a really good beginner book online.

There’s also my book “Ruby for Rails: Ruby techniques for Rails
developers” which is a Rails-centered Ruby tutorial book. R4R
includes sections about the Rails source code, as well as lots of Ruby
techniques and explanations with a Rails spin. (See link in sig.)

David


http://www.rubypowerandlight.com => Ruby/Rails training & consultancy
----> SEE SPECIAL DEAL FOR RUBY/RAILS USERS GROUPS! <-----
http://dablog.rubypal.com => D[avid ]A[. ]B[lack’s][ Web]log
http://www.manning.com/black => book, Ruby for Rails
http://www.rubycentral.org => Ruby Central, Inc.

Mat S. wrote:

On Jul 28, 2006, at 10:55 PM, Jose P. wrote:

Hi all

I took a look to several examples of RoR on different web sites, and I
found that it is hard to write RoR code, in RoR, because I do not
understand all the codes used on the source code.

jsn

I felt the same way, until I swallowed my pride and bought the book.

I bought and read AWDWR and could not fully understand it because my
Ruby skills were nil. I’ve read the Manning book and am now feeling
that I understand what is happening and why better than ever. Manning
does a good job explaining the Ruby philosophy.

Going back to the AWDWR book is now easy reading and I can focus on the
overall concepts and program structure it teaches rather than trying to
get bits and pieces of Ruby which it was not meant to teach. AWDWR does
a good explaining the Rails philosophy which builds on Ruby with its
framework and included Ruby classes and methods.

I’ve also got Rails Recipes and the Pickaxe. Recipes are good because
you can just use them. Eventually I’ll read the Pickaxe to make my Ruby
top notch.

I would recommend to newbies (as I still am to Ruby and OOP) to read the
following books in this order:

  1. Manning’s Ruby for Rails
  2. AWDWR
  3. Recipes, if you just want to get things done.

Bill

or, FOUR DAYS ON RAILS
a tutorial you’ll find in a jiffy in a google click.

g luck

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs