Example Ruby Scripts

J

John W. Long

Hi all,

I'm teaching a small class about Ruby and am looking for a couple of
example scripts to distribute to my students. I'd like programs that
demonstrate concepts. Small games, utilities, etc... Preferably programs
that are a few screen fulls in length.

Any suggestions? It'd be great to have 15 or 20.

Thanks.
 
R

Robert Klemme

John W. Long said:
Hi all,

I'm teaching a small class about Ruby and am looking for a couple of
example scripts to distribute to my students. I'd like programs that
demonstrate concepts. Small games, utilities, etc... Preferably programs
that are a few screen fulls in length.

Any suggestions? It'd be great to have 15 or 20.

Maybe you can get some here:

http://www.bagley.org/~doug/shootout/lang/ruby/
http://www.ntecs.de/old-hp/uu9r/lang/html/ruby.de.html
http://alpha.osnippets.org/?content=snippets&lang=ruby
http://www.kochandreas.com/home/language/matrix.htm

Kind regards

robert
 
M

Michael Neumann

John said:
Hi all,

I'm teaching a small class about Ruby and am looking for a couple of
example scripts to distribute to my students. I'd like programs that
demonstrate concepts. Small games, utilities, etc... Preferably programs
that are a few screen fulls in length.

Any suggestions? It'd be great to have 15 or 20.

How about Julia-Sets or Lindenmayer-Systems (e.g. Koch-Curve):

http://www.ntecs.de/blog/Tech/ComputerScience/JuliaSets.rdoc
http://www.ntecs.de/blog/Tech/ComputerScience/Lindenmayer.rdoc

I think something like Turtle graphics might be interesting (easy to
implement and play with).

Regards,

Michael
 
M

Michael Neumann

John said:
Hi all,

I'm teaching a small class about Ruby and am looking for a couple of
example scripts to distribute to my students. I'd like programs that
demonstrate concepts. Small games, utilities, etc... Preferably
programs that are a few screen fulls in length.

Any suggestions? It'd be great to have 15 or 20.

Dave's Code Kata?

http://www.pragprog.com/pragdave/Practices/Kata

Regards,

Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,155
Messages
2,570,871
Members
47,401
Latest member
CliffGrime

Latest Threads

Top