Re: Straw poll - naming conventions

From: Julian Maisano (maisanosys_at_yahoo.com)
Date: 03/05/04


Date: Fri, 5 Mar 2004 03:52:11 -0600


"Clay Shannon" <clay.shannonNO_FAKE_HAM_IN_A_CAN@msbinfo.com> wrote in
message news:4047796f$1@newsgroups.borland.com...
> What do you use as naming conventions for:
> 1) Constants

K + NAME (KVALUE1 = 1;)

> 2) Method arguments

a + Name = (procedure X(aArg1: type; aArg2: type); )

> 3) Variables

Local procedure vars:
sName : string
iName:integer;
fl, chr, and so on...

Instance vars:
FsName

> and what are your capitalization standards regarding reserved words such
as
> ?nteger, ?tring, ?xit, ?esult
>
 lower... always.

btw:

if Condition
then begin
     (only one line here? I write the "ifs" this way though.)
end
else begin

end;

<blasphemy>
You will want to shoot me, but I miss the If/then/elseif/Endif VB way to
this thing
In fact, I like EndCase, EndFor, EndDo....
ITOH, I ask myself why "try/finally/repeat" does not require the
"begin/end;" block
I find it as an incoherence
</blasphemy>