Real world ruby programs to learn from

Hi,

Can you recommend some Ruby projects in which I can have a look to learn
good Ruby practices / idioms and why not contribute to them? I am fed up
with the stupid code examples we find in books.

The Ruby on Rails code is a bit too complex to start with I guess.

···

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

Fernando Perez wrote:

Hi,

Can you recommend some Ruby projects in which I can have a look to learn
good Ruby practices / idioms and why not contribute to them? I am fed up
with the stupid code examples we find in books.

The Ruby on Rails code is a bit too complex to start with I guess.

I think http://pleac.sf.net is the site you need to visit.

···

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

Fernando Perez wrote:

Hi,

Can you recommend some Ruby projects in which I can have a look to learn
good Ruby practices / idioms and why not contribute to them? I am fed up
with the stupid code examples we find in books.

The Ruby on Rails code is a bit too complex to start with I guess.

Yes, I too am on the lookout for some good, working _projects_ that i
can look at the source code and understand how small to medium size
projects are structured and coded.
*Not* samples, tutorials, snippets etc. I am writing my first ruby app
(after writing a lot of small one-file scripts) - please suggest a few
project names.

···

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

Your link seems very interesting and cool to learn from and can very
very helpful to jump from one language to another.

···

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

I had a quick look at
Process Management and Communication and
I must say this is far from correct or ideal. Issues I have spotted
on first check:

readme = IO.popen("ls") # does not use block form

$stdout = writeme # must be $stdout.reopen(writeme)

Process.waitpid(pid, 0) # should come after the read loop otherwise
deadlock may occur

Kind regards

robert

···

2008/9/30 Fernando Perez <pedrolito@lavache.com>:

Your link seems very interesting and cool to learn from and can very
very helpful to jump from one language to another.

--
remember.guy do |as, often| as.you_can - without end

Robert Klemme wrote:

···

2008/9/30 Fernando Perez <pedrolito@lavache.com>:

Your link seems very interesting and cool to learn from and can very
very helpful to jump from one language to another.

I had a quick look at
Process Management and Communication and
I must say this is far from correct or ideal. Issues I have spotted
on first check:

readme = IO.popen("ls") # does not use block form

$stdout = writeme # must be $stdout.reopen(writeme)

Process.waitpid(pid, 0) # should come after the read loop otherwise
deadlock may occur

Kind regards

robert

Robert , pleac is "a work in progress" . Anyone can make contributions
to it . It would be great if you would submit corrections to bugs you
found , if you can spare the time , of course .

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

Robert , pleac is "a work in progress" . Anyone can make contributions
to it . It would be great if you would submit corrections to bugs you
found , if you can spare the time , of course .

Lex

Argh too bad there are not always good coding practices, that's a reason
why I avoid looking at refactormycode for instance, there are too many
funky solutions proposed.

···

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

I know. But time is lacking ATM. :slight_smile:

robert

···

2008/9/30 Lex Williams <etaern@yahoo.com>:

Robert Klemme wrote:

2008/9/30 Fernando Perez <pedrolito@lavache.com>:

Your link seems very interesting and cool to learn from and can very
very helpful to jump from one language to another.

I had a quick look at
Process Management and Communication and
I must say this is far from correct or ideal. Issues I have spotted
on first check:

readme = IO.popen("ls") # does not use block form

$stdout = writeme # must be $stdout.reopen(writeme)

Process.waitpid(pid, 0) # should come after the read loop otherwise
deadlock may occur

Kind regards

robert

Robert , pleac is "a work in progress" . Anyone can make contributions
to it . It would be great if you would submit corrections to bugs you
found , if you can spare the time , of course .

--
remember.guy do |as, often| as.you_can - without end

Hi --

Robert Klemme wrote:

Your link seems very interesting and cool to learn from and can very
very helpful to jump from one language to another.

I had a quick look at
Process Management and Communication and
I must say this is far from correct or ideal. Issues I have spotted
on first check:

readme = IO.popen("ls") # does not use block form

$stdout = writeme # must be $stdout.reopen(writeme)

Process.waitpid(pid, 0) # should come after the read loop otherwise
deadlock may occur

Kind regards

robert

Robert , pleac is "a work in progress" . Anyone can make contributions
to it . It would be great if you would submit corrections to bugs you
found , if you can spare the time , of course .

I submitted some suggestions a few years ago, I think involving
switching something so that it used a block, and I was told that that
wouldn't be good because it wasn't similar enough to other languages
to compare.

I got the impression that pleac was mostly Perl being written in a
variety of languages, but I haven't looked at it in a while.

David

···

On Tue, 30 Sep 2008, Lex Williams wrote:

2008/9/30 Fernando Perez <pedrolito@lavache.com>:

--
Rails training from David A. Black and Ruby Power and Light:
   Intro to Ruby on Rails January 12-15 Fort Lauderdale, FL
   Advancing with Rails January 19-22 Fort Lauderdale, FL *
   * Co-taught with Patrick Ewing!
See http://www.rubypal.com for details and updates!

-------- Original-Nachricht --------

Datum: Tue, 30 Sep 2008 23:51:18 +0900
Von: Fernando Perez <pedrolito@lavache.com>
An: ruby-talk@ruby-lang.org
Betreff: Re: Real world ruby programs to learn from

> Robert , pleac is "a work in progress" . Anyone can make contributions
> to it . It would be great if you would submit corrections to bugs you
> found , if you can spare the time , of course .
>
> Lex
>
Argh too bad there are not always good coding practices, that's a reason
why I avoid looking at refactormycode for instance, there are too many
funky solutions proposed.
--
Posted via http://www.ruby-forum.com/\.

Dear Fernando,

I think a good place to look at many solutions to many problems and sometimes very
insightful comments is the Rubyquiz site:

http://rubyquiz.com/

Best regards,

Axel

···

--
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!

Actually, just this once I would not recommend the rubyquiz site - the
programs there aren't written with an eye on maintainability.

martin

···

On Tue, Sep 30, 2008 at 12:09 PM, Axel Etzold <AEtzold@gmx.de> wrote:

I think a good place to look at many solutions to many problems and sometimes very
insightful comments is the Rubyquiz site:

I agree with martin. There are only a handful of quizes that have
real-world applicability, and of the answers to those, only a small
percentage exhibiting good coding practices (my own included).

If someone hasn't already mentioned this, look at some of the stdlib
code, and cast your glance over the many projects on rubyforge.

Todd

···

On Tue, Sep 30, 2008 at 2:58 PM, Martin DeMello <martindemello@gmail.com> wrote:

On Tue, Sep 30, 2008 at 12:09 PM, Axel Etzold <AEtzold@gmx.de> wrote:

I think a good place to look at many solutions to many problems and sometimes very
insightful comments is the Rubyquiz site:

Actually, just this once I would not recommend the rubyquiz site - the
programs there aren't written with an eye on maintainability.

martin