What does it mean "Delphi is created in California, so we discourage the use of notation"?

I found out the Object Pascal Style Guide on the following site. http://edn.embarcadero.com/article/10280

I can not understand the following sentence.

"Delphi is being created in California, so we discourage the use of notation unless it is necessary in heading translations:"

What does it mean?

+6
source share
1 answer

If you look a little lower in the article, it clarifies that this applies to Hungarian notation. I’m not sure that California is connected with this, but it means that he believes that bad style uses Hungarian notation (prefix of variable names with abbreviations that describe the type of variable) in Delphi code. As in the example, it gives:

CORRECT FMyString: string; INCORRECT lpstrMyString: string; 

Large, bulky prefixes, such as lpstr (a long pointer to STRING), are common in the Windows API code. The point here is that Delphi is trying to avoid this convention to make code easier to read.

+6
source

Source: https://habr.com/ru/post/953022/


All Articles