Hey,
Does ruby programmers preffer java style "def myMethod" or "def my_method" ?
Does exist any standrds ?
···
--
Tomasz Drobiszewski
Hey,
Does ruby programmers preffer java style "def myMethod" or "def my_method" ?
Does exist any standrds ?
--
Tomasz Drobiszewski
When coding ruby, the uncerscore way of writing methods is prefered;
for classes CamelCase is preferred.
A good startingpoint for this is:
<http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=RubyCodingConvention>
grtz,
wannes
On 06/10/05, baklarz <baklarz@z.pl> wrote:
Hey,
Does ruby programmers preffer java style "def myMethod" or "def my_method" ?
Does exist any standrds ?
I do believe 'def my_method' is preferred.
On 10/6/05, baklarz <baklarz@z.pl> wrote:
Hey,
Does ruby programmers preffer java style "def myMethod" or "def my_method" ?
Does exist any standrds ?
--
Tomasz Drobiszewski
baklarz a écrit :
Hey, Does ruby programmers preffer java style "def myMethod" or
"def my_method" ? Does exist any standrds ?
Hi baklarz,
Welcome to ruby
Ruby preffers underscore_methods.
For more informations, RubyGarden[1] is a good ressource. Here[2] is
an article that explains the different styles.
Cheers,
zimba
[1] http://www.rubygarden.org
[2] http://www.rubygarden.org/ruby?RubyStyleGuide
FYI, I just cleaned that page up a bunch. I welcome corrections if I have mis-stated the community consensus on any topics.
On Oct 6, 2005, at 3:10 AM, zimba wrote:
For more informations, RubyGarden[1] is a good ressource. Here[2] is
an article that explains the different styles.
[1] http://www.rubygarden.org
[2] http://www.rubygarden.org/ruby?RubyStyleGuide