Ruby Programming Exercises

I continually find that not having written a thousand lines or so of
plain Ruby is
impairing my programming efforts in scripting and Rails. I’m looking
for a good set of
homework exercises I can work through to bring up my Ruby skills. I’m
an experienced
programmer, I’ve written hundreds of thousands of lines of code in my
life but I keep on
having to look things up in the Ruby book. I’d feel better if I had a
deeper knowledge of
Ruby.

Ruby quizzes, anyone? I really liked the “C Puzzle Book” back in the
day.

Warren

http://www.rubyquiz.com/

Ruby quizzes, anyone? I really liked the “C Puzzle Book” back in the day.

Warren

http://www.rubyquiz.com ?

-Harold

Check out The Ruby Course (http://ruby.brian-schroeder.de/course/). At
the end of each section are some questions and exercises. They may not
be terribly difficult, but they’re very concept oriented, so they’re
definitely good practice.

You could also try solving the puzzles in your “C Puzzle Book” too.
Post your answers so we can take a peek while you’re at it =)

James

On Fri, 10 Mar 2006 23:30:56 +0900, “Warren S.”
[email protected] wrote:

look up two posts.

Check out this site:

http://www.pyhthonchallenge.com

Just solve each* puzzle with Ruby instead of Python. This will not only
exercise your ruby knowledge but get you deep into gems and RubyForge.

Roy

  • Puzzle #5 is about a particular Python operation that Ruby doesn’t (to
    my knowlege) support so you’ll have to solve it with Python or drop me
    an e-mail and I’ll give you the solution.

http://www.spoj.pl/problems/classical/

Dirk M. wrote in post #46621:

2006/3/12, Roy S. [email protected]:

Check out this site:

http://www.pythonchallenge.com

o my gosh…
that is so awesome :smiley:

Love it! It’s like one of those picture treasure hunts you did as a kid,
only while learning to program. Got to be the best way to practice.

just can’t seem to get past number 2 though :stuck_out_tongue:

There’s a forum for help and hints. What part of 2 is causing you
problems?

2006/3/12, Roy S. [email protected]:

Check out this site:

http://www.pythonchallenge.com

o my gosh…
that is so awesome :smiley:
just can’t seem to get past number 2 though :stuck_out_tongue: