# Small, simple Ruby applications and sample code?

**URL:** <https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366>\
**Category:** Ruby\
**Created:** [September 24, 2008, 5:59am UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366 "2008-09-24T05:59:22Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [September 24, 2008, 5:59am UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/1 "2008-09-24T05:59:22Z")

</div>

Hi all,

Is there a collection (the bigger the better) of small, simply ruby apps  
along with sample code? I’m trying to learn the language and feel like  
seeing a lot of really basic programs and how they were created would be  
enormously helpful. Thanks!

double

---

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [September 24, 2008, 7:23am UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/2 "2008-09-24T07:23:44Z")

</div>

On Tue, Sep 23, 2008 at 11:59 PM, Double M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hi all,
> 
> Is there a collection (the bigger the better) of small, simply ruby apps  
> along with sample code? I’m trying to learn the language and feel like  
> seeing a lot of really basic programs and how they were created would be  
> enormously helpful. Thanks!

Many are not exactly simple, but all the RubyQuiz solutions offer  
something interesting, and it may be the largest collection of focused  
Ruby tasks out there:

[rubyquiz.com](http://rubyquiz.com)

---

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [September 24, 2008, 7:44am UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/3 "2008-09-24T07:44:48Z")

</div>

On Sep 23, 2008, at 9:59 PM, Double M. wrote:

> double  
> here are a few small one’s i’ve written

[http://codeforpeople.com/lib/ruby/punch/punch-0.0.2/bin/punch](http://codeforpeople.com/lib/ruby/punch/punch-0.0.2/bin/punch)

[http://codeforpeople.com/lib/ruby/mp3scrape/mp3scrape-0.0.1/bin/mp3scrape](http://codeforpeople.com/lib/ruby/mp3scrape/mp3scrape-0.0.1/bin/mp3scrape)

[http://codeforpeople.com/lib/ruby/tumblr/tumblr-0.0.1/bin/tumblr](http://codeforpeople.com/lib/ruby/tumblr/tumblr-0.0.1/bin/tumblr)  
[http://codeforpeople.com/lib/ruby/tumblr/tumblr-0.0.1/lib/tumblr.rb](http://codeforpeople.com/lib/ruby/tumblr/tumblr-0.0.1/lib/tumblr.rb)

[http://codeforpeople.com/lib/ruby/rubyforge/rubyforge-0.1.1/bin/rubyforge](http://codeforpeople.com/lib/ruby/rubyforge/rubyforge-0.1.1/bin/rubyforge)

cheers

a @ [http://codeforpeople.com/](http://codeforpeople.com/)

---

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [September 24, 2008, 9:45am UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/4 "2008-09-24T09:45:00Z")

</div>

On Wed, Sep 24, 2008 at 5:59 AM, Double M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Is there a collection (the bigger the better) of small, simply ruby apps  
> along with sample code? I’m trying to learn the language and feel like  
> seeing a lot of really basic programs and how they were created would be  
> enormously helpful. Thanks!

I like Topher Cyrill’s _Practical Ruby Projects_  
[[http://www.amazon.com/Practical-Ruby-Projects-Programmer-Professionals/dp/159059911X](http://www.amazon.com/Practical-Ruby-Projects-Programmer-Professionals/dp/159059911X)].  
It describes six projects from start to end.

---

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [September 24, 2008, 9:52am UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/5 "2008-09-24T09:52:50Z")

</div>

[http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/246304](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/246304)  
🙂

---

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [September 24, 2008, 7:49am UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/6 "2008-09-24T07:49:00Z")

</div>

Gregory B. wrote:

> On Tue, Sep 23, 2008 at 11:59 PM, Double M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > Hi all,
> > 
> > Is there a collection (the bigger the better) of small, simply ruby apps  
> > along with sample code? I’m trying to learn the language and feel like  
> > seeing a lot of really basic programs and how they were created would be  
> > enormously helpful. Thanks!
> 
> Many are not exactly simple, but all the RubyQuiz solutions offer  
> something interesting, and it may be the largest collection of focused  
> Ruby tasks out there:
> 
> [rubyquiz.com](http://rubyquiz.com)

Nice. These are far more advanced tasks than I am able to cope with -  
but this is a great site - very interesting.

---

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [September 24, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/7 "2008-09-24T18:45:06Z")

</div>

Double M. wrote:

> Hi all,
> 
> Is there a collection (the bigger the better) of small, simply ruby apps  
> along with sample code?

Sounds like one of my eBooks might be right for you. They are both free  
and both come with huge numbers of small demo programs. There’s The  
Little Book Of Ruby - this covers all the fundamentals in 10 chapters,  
with every example provided as ready-to-run code:

[http://www.sapphiresteel.com/The-Little-Book-Of-Ruby](http://www.sapphiresteel.com/The-Little-Book-Of-Ruby)

And there’s The Book Of Ruby which is very much more ‘in depth’.  
Eventually The Book Of Ruby will have over 400 pages and 20 chapters.  
I’m building towards this with regular updates as each chapter is  
revised and added. Currently it has 9 chapters, 179 pages and 150  
ready-to-run little demo programs in its source code archive (chapter 10  
will be added in a few days):

[http://www.sapphiresteel.com/The-Book-Of-Ruby](http://www.sapphiresteel.com/The-Book-Of-Ruby)

best wishes  
Huw C.

SapphireSteel Software  
Ruby and Rails In Visual Studio  
[http://www.sapphiresteel.com](http://www.sapphiresteel.com)

---

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [September 24, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/8 "2008-09-24T21:48:16Z")

</div>

Huw C. wrote:

> Double M. wrote:
> 
> > Hi all,
> > 
> > Is there a collection (the bigger the better) of small, simply ruby apps  
> > along with sample code?
> 
> Sounds like one of my eBooks might be right for you. They are both free  
> and both come with huge numbers of small demo programs. There’s The  
> Little Book Of Ruby - this covers all the fundamentals in 10 chapters,  
> with every example provided as ready-to-run code:
> 
> [http://www.sapphiresteel.com/The-Little-Book-Of-Ruby](http://www.sapphiresteel.com/The-Little-Book-Of-Ruby)
> 
> And there’s The Book Of Ruby which is very much more ‘in depth’.  
> Eventually The Book Of Ruby will have over 400 pages and 20 chapters.  
> I’m building towards this with regular updates as each chapter is  
> revised and added. Currently it has 9 chapters, 179 pages and 150  
> ready-to-run little demo programs in its source code archive (chapter 10  
> will be added in a few days):
> 
> [http://www.sapphiresteel.com/The-Book-Of-Ruby](http://www.sapphiresteel.com/The-Book-Of-Ruby)
> 
> best wishes  
> Huw C.
> 
> SapphireSteel Software  
> Ruby and Rails In Visual Studio  
> [http://www.sapphiresteel.com](http://www.sapphiresteel.com)

All of these are great suggestions. Huw - the books look awesome.  
Thanks for replying everyone. If you know of more, keep them coming.

double

---

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [September 25, 2008, 1:02am UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/9 "2008-09-25T01:02:17Z")

</div>

On Wed, Sep 24, 2008 at 04:52:41PM +0900, Brian C. wrote:

> [http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/246304](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/246304)  
> 🙂

Most excellent! I hadn’t seen that.

---

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [September 25, 2008, 11:40am UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/10 "2008-09-25T11:40:33Z")

</div>

Learning R. by programming can be fun, too. Just try out ruby-  
warrior from Ryan B. ([railscasts.com](http://railscasts.com)).  
[http://github.com/ryanb/ruby-warrior/tree/master](http://github.com/ryanb/ruby-warrior/tree/master)

It starts rather easy but gets tricky on higher levels.

Of course you can cheat. But trying to write clean code, refactoring  
when code is getting messy was fun to me

Thomas

---

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [September 25, 2008, 1:06am UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/11 "2008-09-25T01:06:23Z")

</div>

On Wed, Sep 24, 2008 at 12:59:16PM +0900, Double M. wrote:

> Hi all,
> 
> Is there a collection (the bigger the better) of small, simply ruby apps  
> along with sample code? I’m trying to learn the language and feel like  
> seeing a lot of really basic programs and how they were created would be  
> enormously helpful. Thanks!

I wrote something a while back in SOB, my personal Weblog, that might be  
of interest. I took an absurdly simply toy application idea (a program  
that outputs the lyrics of the 99 Bottles song) and went through the  
motions of developing it from scratch in a sort of tutorial approach. I  
called the SOB entry “10 steps to 99 bottles: simple program dev 101”:

[http://sob.apotheon.org/?p=377](http://sob.apotheon.org/?p=377)

I hope that helps a little.

---

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [October 8, 2008, 12:34am UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/12 "2008-10-08T00:34:20Z")

</div>

On Wed, Sep 24, 2008 at 4:59 AM, Double M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hi all,
> 
> Is there a collection (the bigger the better) of small, simply ruby apps  
> along with sample code? I’m trying to learn the language and feel like  
> seeing a lot of really basic programs and how they were created would be  
> enormously helpful. Thanks!

Its not conventional Ruby, but if the challenge ↔ feedback loop isn’t  
working  
for you, you might want to give Shoes a try  
[http://hackety.org](http://hackety.org)  
[http://shoooes.net](http://shoooes.net)

Its a Ruby GUI toolkit, built to help kids get into programming, but  
there is really  
no restriction placed on it - you can happily dress regular ruby  
problems with  
a shoes gui for rapid feedback on the problems you wish to solve.

---

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [October 5, 2008, 3:01am UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/13 "2008-10-05T03:01:13Z")

</div>

Thomas Peklak wrote:

> Learning R. by programming can be fun, too. Just try out ruby-  
> warrior from Ryan B. ([railscasts.com](http://railscasts.com)).  
> [GitHub - ryanb/ruby-warrior: Game written in Ruby for learning Ruby and artificial intelligence.](http://github.com/ryanb/ruby-warrior/tree/master)
> 
> It starts rather easy but gets tricky on higher levels.
> 
> Of course you can cheat. But trying to write clean code, refactoring  
> when code is getting messy was fun to me
> 
> Thomas

Okay, so my lack of skills are definitely showing…

I have no idea how to use/install/play the game. I downloaded the zip,  
read the readme…now what? Thanks everyone! The 99 bottles tutorial  
was extremely helpful.

double

---

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [October 30, 2008, 8:59pm UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/14 "2008-10-30T20:59:06Z")

</div>

On Sun, Oct 05, 2008 at 09:59:40AM +0900, Double M. wrote:

> I have no idea how to use/install/play the game. I downloaded the zip,  
> read the readme…now what? Thanks everyone! The 99 bottles tutorial  
> was extremely helpful.

Somehow, I managed to miss this when it first appeard on the list about  
thre weeks ago. Sorry about that.

I’m glad the 99 bottles thing helped. How are things progressing now?

---

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [October 31, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/15 "2008-10-31T23:16:36Z")

</div>

Chad P. wrote:

> On Sun, Oct 05, 2008 at 09:59:40AM +0900, Double M. wrote:
> 
> > I have no idea how to use/install/play the game. I downloaded the zip,  
> > read the readme…now what? Thanks everyone! The 99 bottles tutorial  
> > was extremely helpful.
> 
> Somehow, I managed to miss this when it first appeard on the list about  
> thre weeks ago. Sorry about that.
> 
> I’m glad the 99 bottles thing helped. How are things progressing now?

I never really did figure out how to use the game. (I completed the  
first level then didn’t know what to do from there).

Things have progressed well. The Shoes GUI has been amazing to use and  
learn from. I am grateful for it. However I’m seeking a position at my  
company where Ruby is not useful, so I’ve been focusing my studies on  
other topics (CSS, Javascript). Thanks for checking in. Great  
community.

---

<div class="post-metadata">

**Author:** ![doubleminus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@doubleminus](https://www.ruby-forum.com/u/doubleminus)\
**Post date:** [November 1, 2008, 1:02am UTC](https://www.ruby-forum.com/t/small-simple-ruby-applications-and-sample-code/149366/16 "2008-11-01T01:02:11Z")

</div>

On Sat, Nov 01, 2008 at 07:15:34AM +0900, Double M. wrote:

> > I’m glad the 99 bottles thing helped. How are things progressing now?
> 
> I never really did figure out how to use the game. (I completed the  
> first level then didn’t know what to do from there).
> 
> Things have progressed well. The Shoes GUI has been amazing to use and  
> learn from. I am grateful for it. However I’m seeking a position at my  
> company where Ruby is not useful, so I’ve been focusing my studies on  
> other topics (CSS, Javascript). Thanks for checking in. Great  
> community.

Sometimes it’s best to just pick a language and stick with it for a  
while, and if you’re doing a lot of work with JavaScript in “the real  
world” anyway, maybe that’s what you should focus on. Ruby will still  
be  
here when you find the time again to give it the attention it deserves,  
and so will the community I’m sure.

I really do think it’s a good idea to come back to Ruby at some point,  
though. It’s a great language, and I at least find it a lot more fun to  
use than JavaScript.

Best o’ luck, in any case.
