POV-Ray : Newsgroups : povray.off-topic : Hungarian notation : Re: Hungarian notation Server Time
4 Sep 2024 07:18:07 EDT (-0400)
  Re: Hungarian notation  
From: Darren New
Date: 6 Jun 2010 16:17:00
Message: <4c0c023c$1@news.povray.org>
Nicolas Alvarez wrote:
> Darren New wrote:
>> Warp wrote:
>>>   Why object about wrong usage of hungarian notation in particular?
>> Because, as I said in the first post, the easiest way to maintain the
>> hungarian notation correctly is to use an IDE sophisticated enough you
>> don't need hungarian notation to start with.
> 
> My IDE uses different colors for global variables and member variables.
> No need for m_ or g_ if the colors say enough :)

Yep. That's what I'm saying. By the time your IDE is smart enough that 
changing the scope of a variable isn't a tedious process of hunting down all 
the references and changing the name, it's probably already recoloring 
things so you can tell without the prefix.  All the prefix is doing is 
putting into ASCII the stuff the compiler already knows, and making you 
manage it by hand. (Which is true of an awful lot of C coding, come to think 
of it. :-)

-- 
Darren New, San Diego CA, USA (PST)
    Eiffel - The language that lets you specify exactly
    that the code does what you think it does, even if
    it doesn't do what you wanted.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.