To Hungarian or not to Hungarian
- From: "Kevin Frevert" <kevin@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 1 Nov 2007 10:34:19 -0500
We are re-thinking our Delphi coding standards to match closer to the
standard found at:
http://www.econos.de/delphi/cs.html
A 'heated' discussion ensued over the use of Hungarian notation on
components. The argument (from one person) was "Hungarian notation is no
longer the recommended practice".
His recommendations were:
(Type -> Example name)
TDataSource -> DataSourceVendors
TQuery -> QueryInvoices
TADOQuery -> AdoQueryCustomers
TADODataSet -> AdoDataSetProducts
TwwDBLookUpCombo -> WwDbLookUpComboCustomerTypes
etc and so on.
My arguments were, Why all the extra typing? Why is the type more relevant
than the functionality (I'm fetching data from the database, why do I care
if it is a TADOQuery vs. a TADODataSet)? How does adding all the extra
characters enhance readability and maintainability?
Is Hungarian notation really dead? What standards do you use?
Thanks for any feedback,
krf
.
- Follow-Ups:
- Re: To Hungarian or not to Hungarian
- From: Jon Purvis
- Re: To Hungarian or not to Hungarian
- From: Marius
- Re: To Hungarian or not to Hungarian
- From: Bob
- Re: To Hungarian or not to Hungarian
- From: Wayne Niddery \(TeamB\)
- Re: To Hungarian or not to Hungarian
- From: Arnie
- Re: To Hungarian or not to Hungarian
- From: Rudy Velthuis [TeamB]
- Re: To Hungarian or not to Hungarian
- From: Alessandro Federici
- Re: To Hungarian or not to Hungarian
- From: Marco Sangali
- Re: To Hungarian or not to Hungarian
- From: Stew
- Re: To Hungarian or not to Hungarian
- From: Peter Morris
- Re: To Hungarian or not to Hungarian
- From: Doug Chamberlin
- Re: To Hungarian or not to Hungarian
- Prev by Date: Re: Suggested changes to Delphi editor
- Next by Date: Re: Suggested changes to Delphi editor
- Previous by thread: New GDI+ Implementation
- Next by thread: Re: To Hungarian or not to Hungarian
- Index(es):
Relevant Pages
|