From: Edgardo Hames Date: 2005-10-05T22:09:17+09:00 Subject: Re: Object Orientation On 10/5/05, Krekna Mektek wrote: > > By the way, why are methods not named following the lowercaseUppercase > convention, as in Java? > This way I can see more directly that something is a method, and not > an instance variable. > You may want to take a look at the Pickaxe's Book (http://www.rubycentral.com/book/) In the chapter "Classes, Objects and Variables", they mention the Uniform Access Principle of Bertrand Meyer. Not ot seeing the difference between an instance variable and a method is a Good Thing (anyway, you cannot access an instance variable directly in Ruby.). From the book: "By hiding the difference between instance variables and calculated values, you are shielding the rest of the world from the implementation of your class. You're free to change how things work in the future without impacting the millions of lines of code that use your class. This is a big win." Cheers, Ed -- Encontr� a "Tu psic�pata favorito" http://tuxmaniac.blogspot.com Thou shalt study thy libraries and strive not to reinvent them without cause, that thy code may be short and readable and thy days pleasant and productive. -- Seventh commandment for C programmers