Hi --

On Sat, 21 Jan 2006, Zach wrote:

> This is an ignorant question to pose, but here I go anyway.
>
> Does anyone see advantages to using Hungarian Case to variable names in
> Ruby, or do you think it may hinder as some people call "accidental
> abstraction" [Bill Davis] ? Since Ruby is big with "Duck Typing", would
> using Hungarian Case be more of a verbal obstacle than a more
> descriptive variable. What about varying degrees, such as for integers,
> doubles, strings, and o for Objects, but not exhaustive?
>
> (For those who don't know about Hungarian typing, it would similar to an
> integer you would name "counter" being named "iCounter" or a variable
> you would normally name "duck" be "oDuck" because it is an object)
>
> I know this is a rather old topic to be bringing into a newer
> technology, but I'm curious on what your all's take is on this.

Tagging variables based on the class of the objects to which they
refer seems to me to be aggressively anti-duck-typing.  It's also ugly
:-)  I think I'll stick with the traditional style.


David

-- 
David A. Black
dblack / wobblini.net

"Ruby for Rails", from Manning Publications, coming April 2006!
http://www.manning.com/books/black