Re: Member Variables Naming Convention



Dave,

If I had to guess why "_" is not considered standard, for reasons other
than those I've already posted in this thread, I'd say that the designers
of these standards saw a need to get rid of symbols in names.

Absolutely. I mean, with C++, all strings should be wrapped in the _T()
macro and every run-time library routine and API appears to have both an
ASCII and Unicode version. Clearly, the .NET designers wanted to clean
things up a little and, presumably, thought simple names were cleaner than
all this Hungarian notation, etc.

I think the sporadic use of "this" is simply more legible than "_", which
only has meaning when it's assigned by the author. "this", together with
lower camel case, is less likely to be misunderstood.

Yeah, I can't do it. One thing (of many things) that annoy me about .NET is
the verboseness. Having suffered from carpel-tunnel issues from time to
time, I'm not going to prefix every occurrance of a member variable with
five additional characters. I guess that is as good as any argument for me
to adopt the "_" prefix as my personal style.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com


.



Relevant Pages

  • Re: Member Variables Naming Convention
    ... designers wanted to clean things up a little and, presumably, thought simple names were cleaner ... Hungarian notation isn't completely outlawed, ... I see no mention in the standards about the use of "txtFirstName", for example, and I try to use ... Having suffered from carpel-tunnel issues from time to time, I'm not going to prefix every ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Ping: Dinosaurs
    ... What makes me one of the best designers is my all ... > simply because their skill is limited to a specific area. ... to invent the web to their own special standards. ... > my skill not only in graphic art, but most all other areas as well. ...
    (alt.2600)
  • Re: Ping: Dinosaurs
    ... Real life does not equal teh movies. ... What makes me one of the best designers is my all ... simply because their skill is limited to a specific area. ... >> point that they become standards in their own right (meaning it's what ...
    (alt.2600)
  • numeric_std vias std_logic_unsigned
    ... although our project developed a standards paper at the project start ... stating the usable VHDL packages which was delivered to all designers, ... std_logic_vector sv(7 downto 0); ...
    (comp.lang.vhdl)

Loading