From: Marko Schulz Date: 2001-04-23T17:37:25+09:00 Subject: [ruby-talk:14064] Re: identifier names Thanks for bringing up these question. I had it too a few days ago, since I am still in the stage of learning ruby. On Sun, Apr 22, 2001 at 10:58:16PM +0900, Mark Slagell wrote: > > Is there any official preference on word separators? e.g., > > thisIsAnIdentifier > this_is_an_identifier > > Looking at other people's code I don't think there's a concensus style. > I guess if there's a tendency, it seems to be for the first style in > class names (where an initial uppercase is called for anyway) and the > second more often in variables and method names. Yes, I got that notion too. It looks like the builtin classes and the standard library is built with this style. 'Programming Ruby' on the other hand seems to prefer the first style (SmashedTogetherWords) for all names. I once read and liked, that it is good practice to follow the coding conventions used in _the_ book or reference that is released on a language. In the western world PR is _the book on ruby at the moment. I personally prefer the style from PR too. But even more I would like to follow the crowd, since it eases the exchange of code, especially in free software. So you know my style, but I would acclaim a consensus even more. -- marko schulz Dieser Satz beinhalten drei Fehller.