Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Re: Hungarian n...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 44047 of 48417
Post > Topic >>

Re: Hungarian notation

by Tristan Wibberley <maihem-nn1@[EMAIL PROTECTED] > Mar 21, 2008 at 01:12 PM

On Fri, 2008-03-21 at 06:02 -0700, dom.k.black@[EMAIL PROTECTED]
 wrote:
> I am looking at starting a new piece of work for a company who are
> heavily into hungarian notation for C coding.
> 
> Any killer arguments for NOT carrying this terrible practice forward
> into new C++ code?

Is that where you name your variables
"a_member_variable_which_is_an_intCompletedItemCount" even though you
could just put at the top of your short function "int&
completed_item_count = this->completed_item_count;"

And if your function is large, delete it and write a small one instead.

Personally I would have liked it if member variables could have only
been referenced via "this". That would be a much better policy - if only
common implementations had a flag to warn (or even error) on use of
members without "this".

-- 
Tristan Wibberley

Any opinion expressed is mine (or else I'm playing devils advocate for
the sake of a good argument). My employer had nothing to do with this
communication.
 




 1 Posts in Topic:
Re: Hungarian notation
Tristan Wibberley <mai  2008-03-21 13:12:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 9:42:22 CST 2008.