[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ruby coding guidelines?

Stefano Zacchiroli

1/21/2007 10:26:00 AM

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=RubyCoding...
- http://www.caliban.org/ruby/rubyguide.s...

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.bononi...
(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

5 Answers

Chris Carter

1/21/2007 3:30:00 PM

0

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=RubyCoding...
> - http://www.caliban.org/ruby/rubyguide.s...
>
> 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.bononi...
> (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

--
Chris Carter
concentrationstudios.com
brynmawrcs.com

dblack

1/21/2007 3:34:00 PM

0

Stefano Zacchiroli

1/21/2007 4:36:00 PM

0

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

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

dblack

1/21/2007 5:14:00 PM

0

James Britt

1/21/2007 9:07:00 PM

0

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=RubyCoding...
>>
>> - http://www.caliban.org/ruby/rubyguide.s...
>>
>> 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.bononi...
>> (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.rubygarde...) , 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)