Small, simple Ruby applications and sample code?

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

On Tue, Sep 23, 2008 at 11:59 PM, Double M. [email protected]
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

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/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/lib/tumblr.rb

http://codeforpeople.com/lib/ruby/rubyforge/rubyforge-0.1.1/bin/rubyforge

cheers

a @ http://codeforpeople.com/

On Wed, Sep 24, 2008 at 5:59 AM, Double M. [email protected]
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].
It describes six projects from start to end.

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/246304
:slight_smile:

Gregory B. wrote:

On Tue, Sep 23, 2008 at 11:59 PM, Double M. [email protected]
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

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

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

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

best wishes
Huw C.

SapphireSteel Software
Ruby and Rails In Visual Studio
http://www.sapphiresteel.com

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

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

best wishes
Huw C.

SapphireSteel Software
Ruby and Rails In Visual Studio
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

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
:slight_smile:

Most excellent! I hadn’t seen that.

Learning R. by programming can be fun, too. Just try out ruby-
warrior from Ryan B. (railscasts.com).
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

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

I hope that helps a little.

On Wed, Sep 24, 2008 at 4:59 AM, Double M. [email protected]
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://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.

Thomas Peklak wrote:

Learning R. by programming can be fun, too. Just try out ruby-
warrior from Ryan B. (railscasts.com).
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

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?

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.

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs