Board index » kylix » Unit Naming convensions
Unit Naming convensions
2005-05-09 09:36:21 PM
How do you name your units?
I do the following.
I always use a 'U' prefix in front of the unit name (almost like 'T' for
If the unit is a form unit i.e. has a xfm then I call the unit
'U' + <formname>.pas e.g. UfrmMain.pas
If the unit is not a form unit then I use a project/company abr. prefix
after the 'U' prefix. as in 'U' + 'proj/company' + <unitname>.pas e.g.
A different convension I can think of is to loose the 'U' and always use
the proj/company prefix in Caps e.g. ABCDETypes.pas, ABCDEfrmMain.pas, etc.
Also, for a case sensitive OS like Linux, it is perhaps a good idea to
use only lower case letters?
Any other better suggestions? I am willing to addapt :)