# Ruby coding guidelines?

**URL:** <https://rubytalk.org/t/ruby-coding-guidelines/34656>\
**Category:** ruby-talk\
**Created:** [21 January 2007 10:25 UTC](https://rubytalk.org/t/ruby-coding-guidelines/34656 "2007-01-21T10:25:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefano\_Zacchiroli](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Stefano\_Zacchiroli](https://rubytalk.org/u/Stefano_Zacchiroli)\
**Post date:** [21 January 2007 10:25 UTC](https://rubytalk.org/t/ruby-coding-guidelines/34656/1 "2007-01-21T10:25:30Z")

</div>

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://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=RubyCodingConvention)  
- [http://www.caliban.org/ruby/rubyguide.shtml#style](http://www.caliban.org/ruby/rubyguide.shtml#style)

Are they "authoritative" for some meaning of the word? 🙂

Many thanks in advance,  
Cheers.

> **···**
>
> --  
> Stefano Zacchiroli -\*- Computer Science PhD student @ Uny Bologna, Italy  
> zack@{[cs.unibo.it](http://cs.unibo.it),[debian.org](http://debian.org),[bononia.it](http://bononia.it)} -%- [http://www.bononia.it/zack/](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

---

<div class="post-metadata">

**Author:** ![Chris\_Carter](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@Chris\_Carter](https://rubytalk.org/u/Chris_Carter)\
**Post date:** [21 January 2007 15:29 UTC](https://rubytalk.org/t/ruby-coding-guidelines/34656/2 "2007-01-21T15:29:39Z")

</div>

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](http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=RubyCodingConvention)  
> > - [The Unofficial Ruby Usage Guide](http://www.caliban.org/ruby/rubyguide.shtml#style)
> > 
> > Are they "authoritative" for some meaning of the word? 🙂
> > 
> > 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](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
> 
> --  
> Chris Carter  
> concentrationstudios.com  
> brynmawrcs.com

---

<div class="post-metadata">

**Author:** ![David\_A\_Black3](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@David\_A\_Black3](https://rubytalk.org/u/David_A_Black3)\
**Post date:** [21 January 2007 15:33 UTC](https://rubytalk.org/t/ruby-coding-guidelines/34656/3 "2007-01-21T15:33:31Z")

</div>

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](http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=RubyCodingConvention)  
> > > - [The Unofficial Ruby Usage Guide](http://www.caliban.org/ruby/rubyguide.shtml#style)
> > > 
> > > Are they "authoritative" for some meaning of the word? 🙂
> > 
> > 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 🙂 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\](http://www.manning.com/black%5C))  
> &nbsp;&nbsp;&nbsp;&nbsp;(See what readers are saying! [http://www.rubypal.com/r4rrevs.pdf\](http://www.rubypal.com/r4rrevs.pdf%5C))  
> Q. Where can I get Ruby/Rails on-site training, consulting, coaching?  
> A. Ruby Power and Light, LLC ([http://www.rubypal.com](http://www.rubypal.com))

---

<div class="post-metadata">

**Author:** ![James\_Britt3](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@James\_Britt3](https://rubytalk.org/u/James_Britt3)\
**Post date:** [21 January 2007 21:06 UTC](https://rubytalk.org/t/ruby-coding-guidelines/34656/4 "2007-01-21T21:06:32Z")

</div>

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://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=RubyCodingConvention)
> > > 
> > > - [http://www.caliban.org/ruby/rubyguide.shtml#style](http://www.caliban.org/ruby/rubyguide.shtml#style)
> > > 
> > > Are they "authoritative" for some meaning of the word? 🙂
> > > 
> > > 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/](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\](http://www.rubygarden.org/ruby%5C)) , but the wiki doesn't seem to be responding right now.
> 
> --  
> James Britt
> 
> "Programs must be written for people to read, and only incidentally  
> &nbsp;&nbsp;for machines to execute."  
> &nbsp;&nbsp;&nbsp;- H. Abelson and G. Sussman  
> &nbsp;&nbsp;&nbsp;(in "The Structure and Interpretation of Computer Programs)

---

<div class="post-metadata">

**Author:** ![Stefano\_Zacchiroli](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Stefano\_Zacchiroli](https://rubytalk.org/u/Stefano_Zacchiroli)\
**Post date:** [21 January 2007 16:36 UTC](https://rubytalk.org/t/ruby-coding-guidelines/34656/5 "2007-01-21T16:36:17Z")

</div>

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 🙂

> **···**
>
> 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 🙂 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/](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

---

<div class="post-metadata">

**Author:** ![David\_A\_Black3](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@David\_A\_Black3](https://rubytalk.org/u/David_A_Black3)\
**Post date:** [21 January 2007 17:13 UTC](https://rubytalk.org/t/ruby-coding-guidelines/34656/6 "2007-01-21T17:13:41Z")

</div>

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 🙂 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 🙂
> 
> Like I said, "also" 🙂
> 
> David
> 
> --  
> Q. What is THE Ruby book for Rails developers?  
> A. RUBY FOR RAILS by David A. Black ([http://www.manning.com/black\](http://www.manning.com/black%5C))  
> &nbsp;&nbsp;&nbsp;&nbsp;(See what readers are saying! [http://www.rubypal.com/r4rrevs.pdf\](http://www.rubypal.com/r4rrevs.pdf%5C))  
> Q. Where can I get Ruby/Rails on-site training, consulting, coaching?  
> A. Ruby Power and Light, LLC ([http://www.rubypal.com](http://www.rubypal.com))
