coding style

B

baklarz

Hey,
Does ruby programmers preffer java style "def myMethod" or "def my_method" ?
Does exist any standrds ?
 
Z

zimba

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

baklarz a =E9crit :
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDROnSBPd9MK2EeAsRAmL5AJ0Xnwu+dYkhbDl9Cp3RZhAmnj3uRACffz26
7q0TBGGbEZwUcnZJ3EoFeO8=3D
=3D7ijL
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top