H
HillBilly
Most of us have been taught to use a conjoined naming convention such as
FirstName, LastName but the real world and a well done User Interface
demands the use of explicit grammatical naming expressions which uses
spaces; First Name, Last Name and so on. Now I understand the conjoined
convention was established in the "old days" when spaces were not supported
by database software but hey, its supposed to be 2008 and SQL Server
supports explicit naming of fields which includes support for spaces.
So, from a developer's perspective; which is your preference and where do
you think you find it okay to deviate from typical conjoined naming
convention?
// Scenario...
We have a table which contains Membership Profile data. We want to generate
a Profile Manager dynamically from the table schema and its data hence the
text property for labels or Link Buttons used on the UI of a page should be
populated with the name of the SQL table's field name --else-- we would have
to utilize a helper class which uses a collection of grammatically
expressive names while the SQL table remained named using conjoined
conventional names. Obviously the synchronization and maintenance gets to be
a problem real quick.
What has the best practice for this scenario? I am in process of using a
ListView control for the first time and this may be an opportunity to try to
automate the text properties of labels and Link Buttons by using the field
names from the SQL table but I don't want the UI on the page to read
FirstName, LastName when it should read First Name and Last Name. eh?
FirstName, LastName but the real world and a well done User Interface
demands the use of explicit grammatical naming expressions which uses
spaces; First Name, Last Name and so on. Now I understand the conjoined
convention was established in the "old days" when spaces were not supported
by database software but hey, its supposed to be 2008 and SQL Server
supports explicit naming of fields which includes support for spaces.
So, from a developer's perspective; which is your preference and where do
you think you find it okay to deviate from typical conjoined naming
convention?
// Scenario...
We have a table which contains Membership Profile data. We want to generate
a Profile Manager dynamically from the table schema and its data hence the
text property for labels or Link Buttons used on the UI of a page should be
populated with the name of the SQL table's field name --else-- we would have
to utilize a helper class which uses a collection of grammatically
expressive names while the SQL table remained named using conjoined
conventional names. Obviously the synchronization and maintenance gets to be
a problem real quick.
What has the best practice for this scenario? I am in process of using a
ListView control for the first time and this may be an opportunity to try to
automate the text properties of labels and Link Buttons by using the field
names from the SQL table but I don't want the UI on the page to read
FirstName, LastName when it should read First Name and Last Name. eh?