From: Ben Giddings Date: 2003-09-16T07:48:00+09:00 Subject: Re: performance and style advice requested Martin DeMello wrote: > Dave Brown wrote: >>It just makes it worse. The $ is ugly for a reason--the use of >>global variables is discouraged. The Ruby Way to do it would be > > Ironically, I find @var far uglier than $var - the @ is denser and > blockier, so it takes up a disproportionate amount of visual attention. Its ugliness is good too -- it is good practice to avoid accessing your own instance variables directly by using an accessor methods instead. If you do this, you get better code and fewer "@"s. Sure, you'll still have more "@"s than "$"s, but dont think that "@" is good and "$" is bad. Ben