Ruby Programming Exercises


#1

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


#2

http://www.rubyquiz.com/


#3

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

Warren

http://www.rubyquiz.com ?

-Harold


#4

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


#5

On Fri, 10 Mar 2006 23:30:56 +0900, “Warren S.”
removed_email_address@domain.invalid wrote:

look up two posts.


#6

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.

#7

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


#8

Dirk M. wrote in post #46621:

2006/3/12, Roy S. removed_email_address@domain.invalid:

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?


#9

2006/3/12, Roy S. removed_email_address@domain.invalid:

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: