Re: To Hungarian or not to Hungarian
- From: "TJC Support" <jvsREMOVE@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 1 Nov 2007 11:41:49 -0500
"Peter Morris" <support@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:4729f8f4@xxxxxxxxxxxxxxxxxxxxxxxxx
I name things like this
FirstNameEdit: TEdit;
FirstNameLabel: TLabel;
Hi Pete,
I do much the same, making the root of the name fit the problem domain, and
following it with something that connects it to the visual component it is
associated with. For variables that are not directly connected to visual
components, it's problem domain plus a suffix (where appropriate for helping
to discern its purpose), and then only where it helps me remember what I'm
looking at. Some examples:
Airspeed_r - a record
Airspeed_a - an array of records
Airspeed_p - a pointer to the array
That's usually all of the type-related suffixes I use. Then there are a
relatively few that keep me straight on the function of a variable, for
example, Airspeed_n would refer to the number (count) of airspeeds in the
array, that sort of thing.
Otherwise, I pretty much stick to CamelCaps, with names describing the
problem domain purpose of the variable.
Cheers,
Van Swofford
Tybee Jet Corp.
.
- References:
- To Hungarian or not to Hungarian
- From: Kevin Frevert
- Re: To Hungarian or not to Hungarian
- From: Peter Morris
- To Hungarian or not to Hungarian
- Prev by Date: Re: Join to some open source project
- Next by Date: Re: Suggested changes to Delphi editor
- Previous by thread: Re: To Hungarian or not to Hungarian
- Next by thread: Re: To Hungarian or not to Hungarian
- Index(es):
Relevant Pages
|