Techbert on Website development and marketing.

Planning to write various interesting notes on website development, website marketing and anything under the sun which is related to web.

Saturday, January 07, 2006

Ruby & Rails Resources

Ruby on Rails is the hot topic in web development. I had a test run for RoR and liked it. I code C at work. So, I am not entirely familiar with web applications although I have used & hacked some opensource php stuff. If you fit the bill, do explore the fantastic world of Ruby. Here are some starter tutorials/documents on Rails:
  1. Rolling with Ruby on Rails: A starter guide by Curt Hibbs
  2. Instant Rails: Quick install of Rails on Windows
Now, Ruby is quite a different language. Where else can you find the code like:
10.times do |x|
   print "Ho!"
start = (0..hash.length()).find {|x| (hash[x].first == 500)}
No wonder, they compare Ruby to LISP. Dont worry. I found it quite intutive after the initial hiccups. Here are some of the resources I used in the process:
  1. Programming Ruby: The Pragmatic Programmer's Guide: Online edition of the Ruby Book.
  2. Ruby: OneLiners
  3. Ruby: CodingInRuby: Code Snippets and Examples


At 1:30 PM, Anonymous Zak said...

Where else can you find code like this?

(dotimes (x 10)
(print "Hi!"))

Ruby is indeed very Lisp-like, and tends to be more pragmatic that Common Lisp, for example:

123.to_s => "123"

(string 123) => type error (can't coerce number to string)

so you have to do this:
(format nil "~d" 123) => "123"


Post a Comment

Links to this post:

Create a Link

<< Home