coding style - Should instance/class fields be prefixed in Delphi? -
as said in uncle bob's clean code, shouldn't prefix class members. although totally agree arguments, talking delphi, how differentiate private fields public properties?
in java that's not problem, since there no properties.
microsoft recommends practice in big bold letters in coding guidelines. make distinction using lowercase private field , uppercase public property.
in addition that, don't have syntax highlight field members other ides (free , open source ides included...)
so, should prefix of our fields? or ones collide public properties?
edit:
i know coding standard delphi prefix fields f, that's preciselly stated bad practice in clean code. mean delphi code cannot "as clean" code written in other languages?
the delphi way prefix them f:
strict private ffield: integer; public property field: integer read ffield; (see object pascal style guide.)
Comments
Post a Comment