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

···

--
Posted via http://www.ruby-forum.com/.

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 Tue, Sep 23, 2008 at 11:59 PM, Double Minus <nathan.wisman@gmail.com> 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!

--
Technical Blaag at: http://blog.majesticseacreature.com | Non-tech
stuff at: http://metametta.blogspot.com

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 Sep 23, 2008, at 9:59 PM, Double Minus 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!

double

--
we can deny everything, except that we have the possibility of being better. simply reflect on that.
h.h. the 14th dalai lama

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.

···

On Wed, Sep 24, 2008 at 5:59 AM, Double Minus <nathan.wisman@gmail.com> 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!

Double Minus 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 Collingbourne

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

···

--
Posted via http://www.ruby-forum.com/\.

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 12:59:16PM +0900, Double Minus 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!

--
Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
Albert Camus: "An intellectual is someone whose mind watches itself."

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

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.

···

On Wed, Sep 24, 2008 at 4:59 AM, Double Minus <nathan.wisman@gmail.com> 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!

Gregory Brown wrote:

···

On Tue, Sep 23, 2008 at 11:59 PM, Double Minus <nathan.wisman@gmail.com> > 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.
--
Posted via http://www.ruby-forum.com/\.

Huw Collingbourne wrote:

Double Minus 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 Collingbourne

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

···

--
Posted via http://www.ruby-forum.com/\.

Learning Ruby by programming can be fun, too. Just try out ruby-
warrior from Ryan Bates (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

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

···

--
Posted via http://www.ruby-forum.com/.

Thomas Peklak wrote:

Learning Ruby by programming can be fun, too. Just try out ruby-
warrior from Ryan Bates (railscasts.com).
GitHub - ryanb/ruby-warrior: Game written in Ruby for learning Ruby and artificial intelligence.

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

···

--
Posted via http://www.ruby-forum.com/\.

Most excellent! I hadn't seen that.

···

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

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

--
Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
print substr('Just another Perl hacker', 0, -2);

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?

···

On Sun, Oct 05, 2008 at 09:59:40AM +0900, Double Minus 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.

--
Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
Dr. Ron Paul: "Liberty has meaning only if we still believe in it when
terrible things happen and a false government security blanket beckons."

Chad Perrin 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 Sun, Oct 05, 2008 at 09:59:40AM +0900, Double Minus wrote:

--
Posted via http://www.ruby-forum.com/\.

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.

···

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

Chad Perrin wrote:
> On Sun, Oct 05, 2008 at 09:59:40AM +0900, Double Minus 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.

--
Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
Quoth Bjarne Stroustrup: "An ugly operation should have an ugly
syntactic form."