This post originated from an RSS feed registered with Ruby Buzz
by Jim Weirich.
Original Post: Coding Standards -- Keep It Simple
Feed Title: { | one, step, back | }
Feed URL: http://onestepback.org/index.cgi/synopsis.rss
Feed Description: Jim Weirich's Blog on Software Development, Ruby, and whatever else sparks his interest.
The last several clients I have worked for loved to publish huge
coding standards documents. A recent one was only 20 pages long (and
that was one of the shorter ones).
While browsing the new Rails 1.0 web site1,
I stumbled upon the Rails coding standard. Here it is in full
(link):
Two spaces, no tabs
MyClass.my_method(my_arg)—not my_method( my_arg ) or my_method my_arg
Follow the conventions you see used in the source already
1 You did know that Rails 1.0 was
released
today, right?