Guenter,
It was a pretty (petty) personal comment. After 25 years of IT I can only state that in my experience sticking prefixes on the front of variables to denote type/scope/whatever add absolutely $0.00 to the value of the code, its' correctness or its' ease of maintenance.
OTOH the cost of implementing L.A.W.s like this, again IME, is considerable. What coders and code reviewers should be looking for is CORRECT code not whether I have a class level variable with a correct name shape.
private int m_semitrailercheesetray = -1;
if ((bool)m_semitrailercheestray) {
do_something();
}
bruce
Well, bruce
I have to agree that in my (see your 25 and raise 5) years of observing code (I haven't written
that much of it), your observation that procrustean adherence to coding standards hasn't added significantly to the quality of the code produced is pretty valid.

From my observations, there are a number of reasons for this:
Naming and adornment standards that are arbitrary. That is, slavishly applied without thinking about why the rules are there (and particularly without explanation of why the rule is there)
and..
Incorrect application of the rules (for example fully 90% of "Hungarian" notation is incorrectly implemented - regardless of what you think about the concept.
However, that doesn't mean that the the adoption of a naming and (particularly) adornment standard is, of itself, bad.
For my own part, I have a a strict naming and adornment standard that was developed after
firstly sitting down and defining a set of
requirements for what the outcomes needed to be. (As far as I know, I'm the only person to have every done that - if anyone knows of any formal specification for a naming standard let me know as (obviously) I'm keenly interested in it)
The standard has problems because it cuts across many existing "L.A.W.S.", but it works for me. It's not widely adopted because it is so radical. However, when promoting it, when I'm criticised, I often ask my interlocutor if they adhere to the "rule" they are proposing. All to often, the answer is no... If you don't have the courage of your convictions...
So, my plea is: Before adopting a naming and adornment standard, first decide on what the requirements are for your situation.
Then, compare and contrast any proposal against the requirements set. For each rule, establish
why it exists and what the benefits are...
(and for the record, my standard
does have specific adornments for private member attrivbutes - as distinct from public member properties)
Paolo
BTW: It may not have been obvious to the L.A.W.S. adherents that your example was "tongue in cheek!".
and you mispelled the variable in the second instance!