Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Joel on Software
Message
From
17/05/2005 10:59:09
Walter Meester
HoogkarspelNetherlands
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01014573
Message ID:
01014929
Views:
56
Hi terry,

Sigh ... here we go again.

>I'm interested in knowing your logic for this
>
>>>>I don't use "Hungarian" but I have a simple personal rule for your example... your lnAccountNumber would be AccountNumber and you lcAccountNumber would be AccountNo.
>>>>
>>>>Works nicely for me.
>
>What have you gained from missing out "ln" or "lc"?

I could anwer with the question. What do you gain with ?? Well, I know the argument about knowing the type in preventing mistakes, but in most cases, it just does not cut it. I rarely come across a circumstance where I cannot determine the type of a variable and I desperately need to know. You might be right in theory, but in practise it is just not worth it.

>personal rule being the operative expression! Surely Hungarian is to get round people's personal prefs and make everything more universally understandable.

You could not be more wrong here. Do you happen to know the complete hungarian notation. What its inmediate purpose was. How it is to be ported to the VFP platform ? Do the same motivations and rules apply to the VFP platform ?? How many versions of hungarian notations are out there ??

There is simply *no* one standard for hungarian notation on the VFP platform.

>>Man, if they can't sniff that out they probably should find another job.
>
>Why put them through the trouble of having to sniff, when they could just use their eyesight? And if you've ever had to maintain someone else's code and cursed them for their short-comings, foibles, weird personal structures, etc., have you ever said that to yourself.

Because hungarian notation bring problems in readability also (lnAccountNumber can be easily read as In - Acount Number, and confuse people. No matter how hardcode programmer you are, you can read plain english way easier than hungarian notation and therefore at least my brain can get confused with hungarian notation).

>>Even if I did 'document' it, they'd likely not have it at hand.

>Even more reason for going Hungarian, I'd say.

I agree with Jim, If they cannot find out by looking at the code, they should be looking for another job. It is knit picking. Esspecially since we are able to specify the type of a variable in code (eg. LOCAL MyVar as Char)

Don't get me wrong, I still use a type prefix, mainly because I've been using this for 10 years or so, but also for make a distinction between fieldnames and variables.

Walter,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform