Ruby coding guidelines?

Is there in the Ruby community anything like "ruby coding convention"?

Google returns two interesting links:
- http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=RubyCodingConvention
- http://www.caliban.org/ruby/rubyguide.shtml#style

Are they "authoritative" for some meaning of the word? :slight_smile:

Many thanks in advance,
Cheers.

ยทยทยท

--
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
(15:56:48) Zack: e la demo dema ? /\ All one has to do is hit the
(15:57:15) Bac: no, la demo scema \/ right keys at the right time

There is no official/authoritative Style Sheet/Coding Conventions but
those two put together are what most of the community uses

ยทยทยท

On 1/21/07, Stefano Zacchiroli <zack@bononia.it> wrote:

Is there in the Ruby community anything like "ruby coding convention"?

Google returns two interesting links:
- http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=RubyCodingConvention
- The Unofficial Ruby Usage Guide

Are they "authoritative" for some meaning of the word? :slight_smile:

Many thanks in advance,
Cheers.

--
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- stefano zacchiroli home page
(15:56:48) Zack: e la demo dema ? /\ All one has to do is hit the
(15:57:15) Bac: no, la demo scema \/ right keys at the right time

--
Chris Carter
concentrationstudios.com
brynmawrcs.com

Hi --

ยทยทยท

On Mon, 22 Jan 2007, Chris Carter wrote:

On 1/21/07, Stefano Zacchiroli <zack@bononia.it> wrote:

Is there in the Ruby community anything like "ruby coding convention"?

Google returns two interesting links:
- http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=RubyCodingConvention
- The Unofficial Ruby Usage Guide

Are they "authoritative" for some meaning of the word? :slight_smile:

There is no official/authoritative Style Sheet/Coding Conventions but
those two put together are what most of the community uses

I'd also point to the standard library (at least most of it :slight_smile: as a
good source of examples of traditional Ruby style.

David

--
Q. What is THE Ruby book for Rails developers?
A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black\)
    (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf\)
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)

Chris Carter wrote:

ยทยทยท

On 1/21/07, Stefano Zacchiroli <zack@bononia.it> wrote:

Is there in the Ruby community anything like "ruby coding convention"?

Google returns two interesting links:
- http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=RubyCodingConvention

- http://www.caliban.org/ruby/rubyguide.shtml#style

Are they "authoritative" for some meaning of the word? :slight_smile:

Many thanks in advance,
Cheers.

--
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
(15:56:48) Zack: e la demo dema ? /\ All one has to do is hit the
(15:57:15) Bac: no, la demo scema \/ right keys at the right time

There is no official/authoritative Style Sheet/Coding Conventions but
those two put together are what most of the community uses

There is also style guide on the RubyGarden wiki (http://www.rubygarden.org/ruby\) , but the wiki doesn't seem to be responding right now.

--
James Britt

"Programs must be written for people to read, and only incidentally
  for machines to execute."
   - H. Abelson and G. Sussman
   (in "The Structure and Interpretation of Computer Programs)

That's indeed what I usually do, but a visible document on the net would
be far more reassuring for newbies willing to following the community
best-practices :slight_smile:

ยทยทยท

On Mon, Jan 22, 2007 at 12:33:31AM +0900, dblack@wobblini.net wrote:

I'd also point to the standard library (at least most of it :slight_smile: as a
good source of examples of traditional Ruby style.

--
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
(15:56:48) Zack: e la demo dema ? /\ All one has to do is hit the
(15:57:15) Bac: no, la demo scema \/ right keys at the right time

Hi --

ยทยทยท

On Mon, 22 Jan 2007, Stefano Zacchiroli wrote:

On Mon, Jan 22, 2007 at 12:33:31AM +0900, dblack@wobblini.net wrote:

I'd also point to the standard library (at least most of it :slight_smile: as a
good source of examples of traditional Ruby style.

That's indeed what I usually do, but a visible document on the net would
be far more reassuring for newbies willing to following the community
best-practices :slight_smile:

Like I said, "also" :slight_smile:

David

--
Q. What is THE Ruby book for Rails developers?
A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black\)
    (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf\)
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)