From: Bas van Gils Date: 2007-06-13T15:58:23+09:00 Subject: Re: a matter of style On Wed, Jun 13, 2007 at 04:49:01AM +0900, Robert Dober wrote: [...] > Seriously it would be stupid to advice a newby into a personal style > that is way off mainstream and I did not. [...] > Now when it comes to working in teams the whole story changes again... > most important thing being a *consistent* style. By adopting a style > close to mainstream that can be achieved easier.... > > That is why I feel that this discussion is important. I agree that the discussion is important. It's a good thing that Ruby supports so many styles. I've programmed in several languages and I'm always curious as to what is considered to be `good style' by which I mean stuff like: - do you use {} or begin/end for blocks - do you use symbols or strings as keys for hashes - guidelines for rdoc - a few big classes (i.e. java style) or many small classes - and so on The advise to look at the core libs is a good one. There's a lot of code there and even though I don't understand all of it, it gives a good idea of how things work. More experience and more knowledge of the Ruby API is what I personally need now ;) Just-my-five-cents'ly yours Bas -- Bas van Gils , http://www.van-gils.org [[[ Thank you for not distributing my E-mail address ]]] Quod est inferius est sicut quod est superius, et quod est superius est sicut quod est inferius, ad perpetranda miracula rei unius.