I have learned "Object Pascal Style Guide" in the following site. http://edn.embarcadero.com/article/10280
I cannot understand the following sentence.
"Delphi is created in California, so we discourage the use of notation, except where required in header translations:"
What does this mean?
If you look a little bit lower down in the article, it clarifies that it's referring to Hungarian notation. Not sure what California has to do with it, but it means that it's considered poor style to use Hungarian notation (prefixing variable names with abbreviations that describe the variable's type) in Delphi code. Like the example it gives:
CORRECT
FMyString: string;
INCORRECT
lpstrMyString: string;
Big, unwieldy prefixes like lpstr
(Long Pointer to STRing) are common in Windows API code. The point being made here is that Delphi tries to avoid this convention as a way to make the code easier to read.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With