On Sun, Jan 08, 2006 at 11:25:11AM +0900, Daren wrote:
} I am a PHP developer and have just begun to investigate Ruby. I have
} looked through the online Pickaxe book and Why’s Poignant guide, but
} anxious to get started programming with it. Unfortunately, I’m pretty
} short on ideas on what to program that would increase my understanding
} and proficiency with Ruby. What would you experts out there suggest
} a Ruby newcomer who has seen all the tutorials but wants to continue
} learning? Is there something specific that you always code after
} learning a language? Any ideas or resources would be appreciated?
The best I can do is tell you what I did to learn, just a couple of
ago. I bought the pickaxe book but, honestly, only got through the first
chapter or so. I learned that Ruby is the bastard child of Perl and
Smalltalk, which made me happy. I also got through a chunk of Why’s
even before the pickaxe book arrived, which got me excited about some of
the features (mostly iteration, blocks, and binding). I then did nothing
for a couple of months.
Meanwhile, I have been keeping some sets of bookmarks as RDF files. I
“subscribe” to them as Firefox live bookmarks and they are available to
wherever I go. I was maintaining them by keeping them in simple list
and running an awk script I had written to produce the RDF files. I told
some people about it, and about three weeks ago one of them tells me
he wrote a PHP webapp to manage such things, and would I like to take a
Well, I took a look and it was pretty neat, so I decided to implement it
with Ruby on Rails as a toy project. Mine turned out better than his,
advantage of Ruby/RoR over PHP for such a small project. This involved
Getting Ruby installed: apt-get install ruby ri
Getting RubyGems installed in /usr/local, which is nontrivial
I wound up writing a workaround script to force it to install
in /usr/local, then had to add GEM_HOME to /etc/profile and
/etc/csh.cshrc (and the rails environment file later on).
Getting rails installed: gem install -y rails
Figuring out how to use rails from docs/tutorials and playing around
Figuring out how to use RSS::Maker to generate RSS feeds
Implementing and debugging the RoR app.
Figuring out how to integrate with Apache2 (which involved fcgid)
had finished development, and as a path on my only virtual host
than as its own virtual host.
} P.S. Replies like “Practice,Practice,Practice” would not answer my
} question. Please be specific.
I hope that was specific enough. It taught me a great deal, and I now
pretty confident using Ruby and RoR. I’ve been doing the Ruby Q.zes
last two weeks, too. Last week’s was tough, and I never did perfect my
solution. This week, however, the problem was easier and I produced two
solid solutions in about three and a half hours. I like Ruby.
P.S. Lurking on the list and reading the responses/solutions to other
people’s problems has also been very helpful.