|
On Tue, 28 Dec 2004 10:39:38 -0500, rob@xxxxxxxxx <rob@xxxxxxxxx> wrote: > I tend to agree with you on your questioning of prefixing variable types. > We tend to following the redbook suggestion of prefixing basing pointer > with p and the rest of it is the variable for which it is a pointer. > > I don't see how the following: > > read(e) myfile; > if %status(myfile)=EndOfFile; > > is improved by > > read(e) myfile; > if %status(myfile)=Const_EndOfFile; it makes a difference when doing global find and change type changes. It cuts down on the number of false finds. in my experience constants are frequently grouped together. all the codes for a status field is the classic example. In such a case I think you have to have a naming convention. I find I spend a lot of time naming things. almost to the point that I cant code it until I have named it. having a naming convention that is reasonable simplifies that process. -Steve
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.