# Ruby coding guidelines?

**URL:** <https://www.ruby-forum.com/t/ruby-coding-guidelines/82813>\
**Category:** Ruby\
**Created:** [January 21, 2007, 11:26am UTC](https://www.ruby-forum.com/t/ruby-coding-guidelines/82813 "2007-01-21T11:26:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefano\_Z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/53a042/32.png) [@Stefano\_Z](https://www.ruby-forum.com/u/Stefano_Z)\
**Post date:** [January 21, 2007, 11:26am UTC](https://www.ruby-forum.com/t/ruby-coding-guidelines/82813/1 "2007-01-21T11:26:40Z")

</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)

- [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.

---

<div class="post-metadata">

**Author:** ![Stefano\_Z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/53a042/32.png) [@Stefano\_Z](https://www.ruby-forum.com/u/Stefano_Z)\
**Post date:** [January 21, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/ruby-coding-guidelines/82813/2 "2007-01-21T16:30:13Z")

</div>

On 1/21/07, Stefano Z. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> –  
> Stefano Z. -\*- Computer Science PhD student @ Uny Bologna, Italy  
> zack@{cs.unibo.it,[debian.org](http://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

---

<div class="post-metadata">

**Author:** ![Stefano\_Z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/53a042/32.png) [@Stefano\_Z](https://www.ruby-forum.com/u/Stefano_Z)\
**Post date:** [January 21, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/ruby-coding-guidelines/82813/3 "2007-01-21T16:34:13Z")

</div>

Hi –

On Mon, 22 Jan 2007, Chris C. wrote:

> 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

---

<div class="post-metadata">

**Author:** ![Stefano\_Z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/53a042/32.png) [@Stefano\_Z](https://www.ruby-forum.com/u/Stefano_Z)\
**Post date:** [January 21, 2007, 5:37pm UTC](https://www.ruby-forum.com/t/ruby-coding-guidelines/82813/4 "2007-01-21T17:37:19Z")

</div>

On Mon, Jan 22, 2007 at 12:33:31AM +0900, removed\_email\_address@domain.invalid 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 🙂

---

<div class="post-metadata">

**Author:** ![Stefano\_Z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/53a042/32.png) [@Stefano\_Z](https://www.ruby-forum.com/u/Stefano_Z)\
**Post date:** [January 21, 2007, 6:14pm UTC](https://www.ruby-forum.com/t/ruby-coding-guidelines/82813/5 "2007-01-21T18:14:24Z")

</div>

Hi –

On Mon, 22 Jan 2007, Stefano Z. wrote:

> On Mon, Jan 22, 2007 at 12:33:31AM +0900, removed\_email\_address@domain.invalid 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

---

<div class="post-metadata">

**Author:** ![Stefano\_Z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/53a042/32.png) [@Stefano\_Z](https://www.ruby-forum.com/u/Stefano_Z)\
**Post date:** [January 21, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/ruby-coding-guidelines/82813/6 "2007-01-21T22:07:04Z")

</div>

Chris C. wrote:

> > 
> 
> 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)) , but the wiki doesn’t seem to be  
responding right now.

–  
James B.

“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)
