From: Jim Weirich Date: 2003-08-03T07:58:16+09:00 Subject: Re: Indentation Style On Sat, 2003-08-02 at 08:16, Nikolai Weibull wrote: > I've been meaning to ask this for quite some time. Why is and > indentation-level of two (2) spaces the standard for Ruby? Is there any > reason for it being so short/small? I've been using eight (8), i.e. > hard tabs, but been feeling it may be a bit too much. But I don't think > I would ever go below 4. Plaenty of others have weighed in on the style issue and tabs vs spaces. Prior to Ruby, I would have agreed that 4 spaces was the minimum indentation level I could live with. However, I tried the Ruby 2-space indentation and came to like it. Now Ruby code with more than two spaces just doesn't look right. Perhaps its because individual methods in Ruby are generally shorter, therefore the code doesn't need greater indentation to set it off. Try it for a week or two and see if it grows on you. If not, then its easy enough to switch back. -- -- Jim Weirich jweirich@one.net http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)