Re: Coding standards
Posted by webmaster Guido
on April 24, 2001 at 16:41:24:
In Reply to: Coding standards posted by Robert W. Campbell on April 23, 2001 at 02:00:26:
: Hungarian notation is well documented and widely used. Is there a known/accepted standard for variables (doubles, integers, etc.) used in Pascal/Delphi? Similarly, is there a standard for identifying class member fields, such as the "m_" used C++? Thanks!
Object Pascal, Delphi's programming language, is a very strongly typed language.
That means that the slightest vagueness or contradiction in defining the types of variables (string, char, integer,...) will stop the compiler and give an error message.
Maybe this is the reason that there are no naming standards, because all the definitions have to be done very explicitly.
Over time several "de facto" styles have been developed, but almost nobody sticks to them. Especially Borland gives the bad example by not following their own recommandations in their code ;-)
Only a handfull of recommandations are followed by everybody, such as: the name of a class starts with a "T"...