End of 2009 Ruby Coding Standards survey

1 view
Skip to first unread message

Marc Chung

unread,
Dec 10, 2009, 1:32:31 PM12/10/09
to phoeni...@googlegroups.com
Not super scientific, but it might get some interesting discussions going.

https://thoughtbot.wufoo.com/forms/ruby-community-coding-standards/

- Marc

James Britt

unread,
Dec 10, 2009, 3:10:17 PM12/10/09
to phoeni...@googlegroups.com
"Do you observe an 80 characters per line restriction for code?"

Sort of. 'Other' doesn't really capture that though. I bet most
people follow some line-length restriction but it may not be 80 columns.

A better question might be "Do you follow a maximum line-length standard?"



"Enumeration style"

No option for using one or the other depending on side effects or return
value.



--
James Britt

www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
www.neurogami.com - Smart application development

Jay McGavren

unread,
Dec 10, 2009, 3:24:24 PM12/10/09
to Phoenix Ruby Users Group
Well, it didn't show my score at the end, but I think I got all of
them correct! :)

--
Jay McGavren
http://jay.mcgavren.com

Marc Chung

unread,
Dec 10, 2009, 7:47:00 PM12/10/09
to phoeni...@googlegroups.com
On Thu, Dec 10, 2009 at 1:24 PM, Jay McGavren <jay.s...@gmail.com> wrote:
> I think I got all of
> them correct! :)

Ha ha ha. I wonder how widely answers vary between developers.

Side note: The Go programming language ships with gofmt which formats
Go code, hopefully making stylistic differences an argument of the
past.
Reply all
Reply to author
Forward
0 new messages