From: Florian Gilcher Date: 2010-04-01T02:25:59+09:00 Subject: Re: RubyDictionary - First Try On Mar 31, 2010, at 5:07 PM, Peter Hickman wrote: > On 31 March 2010 15:58, Max Schmidt wrote: > >> Last question: >> I posted this code on an other ruby forum and was criticized about my >> coding style: Indents are always done with two whitespaces rather than >> with tabs like I have. Have you heard anything about such a "unwritten >> rule"? > This is a religious issue, (flame)wars have started over less. I was the one who made that comment, because it was the first thing that jumped right at me, especially when viewing the code in out code highlighter (that uses 4 spaces per tab). This may be a religious issue, but thats the case with every coding standard. I never criticize people for their use of do ... end, {} and such, but "2 spaces, no tabs" is such widely used in the ruby world that you can indeed call it a common standard and good practice. It is also not an "unwritten rule", but referred to in many guides, for example: http://www.caliban.org/ruby/rubyguide.shtml#indentation http://github.com/chneukirchen/styleguide/blob/master/RUBY-STYLE http://www.pathf.com/blogs/2008/10/elements-of-ruby-style/ ... as well as many open repositories to be found on github. As Max explicitly asked for Cosmetics/Style, and this is one of the biggest flaws of his program in this regard, so I had to mention it. Regards, Florian -- Florian Gilcher smtp: flo@andersground.net jabber: Skade@jabber.ccc.de gpg: 533148E2