From: chiaro scuro Date: 2006-05-01T08:11:02+09:00 Subject: Re: how to use curly brackets vs. 'end' in Ruby ------=_Part_4517_8702794.1146438658761 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I certainly cannot disagree with that! :-) bad-hungarian is when you prefix a variable name with type information eg: fWidth =3D fSize the 'f' simply means float. you can see you have type compatibilty on both sides, but it doesn't say anything about semantic compatibility. fWidth could be used as a measure in metres, whereas fSize is expressed in feet! good-hungarian is when you prefix a variable name with semantic information metric_width =3D feet_size you can see immediately that there is a problem there. both variables are of the same type (Float), yet they have a different meaning. I would argue that in ruby -using duck typing- we use good hungarian quite = a lot. On 5/1/06, Stuart Stegall wrote: > > So Hungarian Notation =3D Bad, Hungarian Women =3D Good. Did I get that > right? > chiaro scuro wrote: > > ah! but not may know that there are both bad-hungarian and > > good-hungarian ! > > > > On 4/30/06, Bill Kelly wrote: > >> > >> From: "Robert Klemme" > >> > > >> > 2006/4/28, Austin Ziegler : > >> > > On 4/28/06, Jake McArthur wrote: > >> > > > FYI, the most often used convention is to use {} for single line > >> > > > blocks and do..end for multiline blocks. > >> > > > >> > > This is an oft-used convention, but it is probably wrong. > >> > > >> > I wonder how a convention can be wrong. This may sound like > linguistic > >> > nitpicking, but the whole point of a convention seems to be that it'= s > >> > adhered to. It just "is" but can't be right or wrong IMHO. There > might > >> > be more and less usable and easier and more complicate conventions - > >> > but right or wrong? > >> > >> You know Robert, I was in complete agreement with you - until > >> I remembered Hungarian Notation. > >> > >> > >> lpszRegards, > >> > >> Bill > >> > >> > >> > >> > > > > > > -- > > Chiaroscuro > > --- > > Liquid Development: http://liquiddevelopment.blogspot.com/ > > > > > -- Chiaroscuro --- Liquid Development: http://liquiddevelopment.blogspot.com/ ------=_Part_4517_8702794.1146438658761--