Re: Hungarian Notation for Controls : Feature Request?
From: Gerhard Menzl (gerhard.menzl_at_spambucket.net)
Date: 02/26/04
- Next message: Chris Hind: "Core dump in VS2003 when adding a web reference"
- Previous message: patrick: "Data Grid - Paging"
- In reply to: Tony Nassar: "Hungarian Notation for Controls : Feature Request?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 26 Feb 2004 09:51:10 +0100
Tony Nassar wrote:
> Nearly everyone uses some kind of Hungarian notation for controls,
> e.g., my form will almost certainly have variables named like
> "label1", "lbSomething", "m_lblSomething", etc.
Nearly everyone? Hungarian notation is now widely acknowledged as a bad
idea.
> Would it not be nice if the Forms Editor allowed you to set the prefix
> for every class of control, so that whenever you added a label, it
> would be named "lbl1," whenever you added a check box, it would be
> named "chk1", and so on?
With an ever growing numbers of custom controls, you would quickly run
out of prefixes and find it impossible to remember which prefix stands
for what. In addition, changing the type of control from, say,
TabControl to CoolTabControl would require you to rename all occurrences
of the respective variable manually.
I prefer my variable names to differ at the most significant end, i.e.
at the beginning: netConfigTab, not tpNetConfig.
I wish that rather than heaping bell upon bell and whistle upon whistle
the Visual Studio team would concentrate their efforts on delivering a
product that doesn't crash, take ages to display a form, and pester me
with stupid error messages like "object type cannot be converted to
target type".
Gerhard Menzl
-- Humans may reply by replacing the obviously faked part of my e-mail address with "kapsch".
- Next message: Chris Hind: "Core dump in VS2003 when adding a web reference"
- Previous message: patrick: "Data Grid - Paging"
- In reply to: Tony Nassar: "Hungarian Notation for Controls : Feature Request?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|