From: Austin Ziegler Date: 2004-02-26T02:05:00+09:00 Subject: Re: Appropriate use of camelCase On Tue, 24 Feb 2004 11:11:37 +0900, Kirk Haines wrote: > On Tue, 24 Feb 2004, NAKAMURA, Hiroshi wrote: >> Back to the topic, here is the coding convention for library which is >> bundled with ruby. [ruby-talk:62890], [ruby-talk:62894]. >> * use two-space indentation, no TABs > This is another perfect example of something that is a religious issue. > One can make good arguments for using spaces for indentation, and one can > make good arguments for using tabs for indentation. When one is down in > the trenches churning out a solution for a client, what matters most is > that one be consistent with whatever one chooses, as there are always > going to be people who both agree and disagree with the choice. Better > to just make the choice and then get on with getting the work done. Whenever I have been in a position to make code formatting standards, I have absolutely forbidden tabs for indentation. They're too problematic. The default tabspacing is too large (8), and because everyone can configure things differently (2, 3, 4, 8, ...) it turns into a problem when people have "smart" editors that mix tabs and spaces. The trick here, though, is that Ruby has a style: two-space indentation, no tabs. If you write a library that you want included in the standard library, you need to conform to the style there. -austin -- austin ziegler * austin@halostatue.ca * Toronto, ON, Canada software designer * pragmatic programmer * 2004.02.25 * 12.02.00