At 10:37 2017-07-26, "Paul H. Tarver" <[email protected]> wrote:
I was reading a chapter on 'Meaningful Names' in the book "Clean Code" by
Robert C. Martin last night and right after he made a big point of using
"Intention-Revealing Names" ie: make the name of a variable, procedure or
function reflect its use, he then takes the opportunity to trash the
Hungarian Notation system (and by extension I suppose any similar naming
convention, including the YAlan Griver convention) saying that with today's
strongly typed variables, notation like this is useless and should be
avoided.
It seems to be tradition in some circles to trash Hungarian
Notation. As I understand, Microsoft got its use wrong. This led to
the crusade against HN.
I use HN, but not for types in the programming language
sense. I use it for specifying how a variable is intended to be
used. An integer variable could be a count, an index, a size, or
something else. I respectively use the prefixes "c", "x", and "s"
for the first three.
Quite frankly, it hacked me off as I've spent the better part of 25 years
learning and becoming disciplined enough to use the YAG naming convention as
well as I could in FoxPro and I've used the same naming convention
regardless of the language or its strongly typed variables because it works
for me.
Why invest the anger into this?
In my world, any roadmap or breadcrumbs I can leave myself for future
maintenance and standardization is a good thing.
Exactly.
Thoughts?
Carry on. You are doing fine.
Sincerely,
Gene Wirchenko
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/4886efc67d61a6fb82a6f42db56f29d8@mtlp000083
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.