- Local time
- Tomorrow, 02:55
- Joined
- Jan 20, 2009
- Messages
- 12,895
How much use do you make of Leszynski/Reddick naming conventions in your designs?
I have never been a big fan, particularly for objects such as tables, queries and forms. I don't know the details of their original concepts but, unsurprisingly, they parted ways through disagreement on the details, no doubt becausr it is an entirely arbitrary connvention.
Some developers seem to use it to a limited extent while others take it to ridiculous extremes using such things as fldSomeName for fields in tables.
In most cases the context makes the type of object clear or it doens't particularly matter. Aside from fld, a couple of others spring to mind that I particularly eschew.
A Select query and a Table are almost indistinguishable when used as a data source. So why distinguish them with a prefix notation like tbl and qry that disassociates such queries from their tables and groups them with other queries they have nothing in common with?
Access demonstrates the interchangability of tables and queries both within query design and by the fact that a table and a query cannot have the same name while allowing a query or table name to be reused for a form.
There is no intrinsic difference between a mainform and a subform object so why prefix with something like frm and sfrm? Indeed the same form can sometimes be used both as a main form and a subform depending on the context. Besides it is invariably referred to as subformcontrolname.Form when used as a subformcontrol's source object.
Parts of a form may have different control types all associated the same kind of information. For example DateStart, DateEnd, DateRange. Logically they are more stongly associated with each other using the same starting characters where as with Hungarian notation they could be widely separated with prefixes like cbo and txt.
I can see some occasional advantage when using Intellisense and one can't remember a controlname at all or locate it among the dozens of properties in the list. However good naming of the controls will usually suffice to remember how the required contolname starts.
While on the subject of Intellisense, it is a pity it does not separate objects and properties in the prompt list. A checkbox filter in the header of the list would do.
However it would be far more fluent if it could distinguish the bang. Hit the Bang to get the object list and the dot for properties. That would even help new devolopers understand the difference between a dot and a bang.
I have never been a big fan, particularly for objects such as tables, queries and forms. I don't know the details of their original concepts but, unsurprisingly, they parted ways through disagreement on the details, no doubt becausr it is an entirely arbitrary connvention.
Some developers seem to use it to a limited extent while others take it to ridiculous extremes using such things as fldSomeName for fields in tables.
In most cases the context makes the type of object clear or it doens't particularly matter. Aside from fld, a couple of others spring to mind that I particularly eschew.
A Select query and a Table are almost indistinguishable when used as a data source. So why distinguish them with a prefix notation like tbl and qry that disassociates such queries from their tables and groups them with other queries they have nothing in common with?
Access demonstrates the interchangability of tables and queries both within query design and by the fact that a table and a query cannot have the same name while allowing a query or table name to be reused for a form.
There is no intrinsic difference between a mainform and a subform object so why prefix with something like frm and sfrm? Indeed the same form can sometimes be used both as a main form and a subform depending on the context. Besides it is invariably referred to as subformcontrolname.Form when used as a subformcontrol's source object.
Parts of a form may have different control types all associated the same kind of information. For example DateStart, DateEnd, DateRange. Logically they are more stongly associated with each other using the same starting characters where as with Hungarian notation they could be widely separated with prefixes like cbo and txt.
I can see some occasional advantage when using Intellisense and one can't remember a controlname at all or locate it among the dozens of properties in the list. However good naming of the controls will usually suffice to remember how the required contolname starts.
While on the subject of Intellisense, it is a pity it does not separate objects and properties in the prompt list. A checkbox filter in the header of the list would do.
However it would be far more fluent if it could distinguish the bang. Hit the Bang to get the object list and the dot for properties. That would even help new devolopers understand the difference between a dot and a bang.