Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Hungarian notation, kind of

by sundialsvc4 (Monsignor)
on Jan 22, 2013 at 16:24 UTC ( #1014718=note: print w/ replies, xml ) Need Help??


in reply to Hungarian notation, kind of

To me, consistency is key.   If your application has to work alongside other code (e.g. in VB) that already uses this nomenclature, then follow suit.   If you are working with a legacy application that didn’t use it, don’t introduce it.   Figure out what the Romans were doing and keep doing it.

These notations can unintentionally be misleading when used with a “typeless” language, such as Perl is and such that VB often is.   You can legitimately find that your szFoo variable contains an integer, or that the value it contains has magically transmogrified itself into one.   Thus, the social-contract that has been implied by the naming can’t be upheld by the technology, which might produce confusion.  Nevertheless, human beings will still benefit from consistency in naming, whatever that consistency is.


Comment on Re: Hungarian notation, kind of

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014718]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2014-09-16 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (32 votes), past polls