Click here to Skip to main content
15,884,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: coding conventions.... Pin
waleed riaz22-Oct-02 21:52
waleed riaz22-Oct-02 21:52 
GeneralRe: coding conventions.... Pin
Kevin McFarlane24-Oct-02 7:33
Kevin McFarlane24-Oct-02 7:33 
GeneralRe: coding conventions.... Pin
waleed riaz24-Oct-02 19:04
waleed riaz24-Oct-02 19:04 
GeneralRe: coding conventions.... Pin
Kevin McFarlane25-Oct-02 0:07
Kevin McFarlane25-Oct-02 0:07 
GeneralRe: coding conventions.... Pin
Furty25-Oct-02 15:39
Furty25-Oct-02 15:39 
GeneralRe: coding conventions.... Pin
LongRange.Shooter28-Oct-02 11:02
LongRange.Shooter28-Oct-02 11:02 
GeneralRe: coding conventions.... Pin
waleed riaz28-Oct-02 18:31
waleed riaz28-Oct-02 18:31 
GeneralRe: coding conventions.... Pin
LongRange.Shooter29-Oct-02 3:22
LongRange.Shooter29-Oct-02 3:22 
Looking through my code, I have turned to using pascal notation for all of my controls. So for example, most pages I build has a line for display of error messages. That label is named ErrorMessage. A combobox which allows the choices for descriptions of a project phase is named ProjectPhaseChoices. It also helps clarify the code a little bit. For example:

lifeCycle += 2; vs.
LifeCycleChoice.SelectedItem = 1;

It is obvious which is a variable. If Microsoft allowed the original notation for controls (eg: LifeCycleChoice="Unit Testing";) you would have a real hard time short of mouse-floating to determine if you are working with a control or an internal variable. Fortunately, you are forced into explicitely naming the property within the control object. But it is all a matter of personal choice. I name all of my objects in Pascal, so it makes sense that the controls also be named in Pascal as well since both are just objects.

---------------------------------------------
Once I thought I was wrong
but I was happy to discover that was a mistake.


Condor
GeneralRe: coding conventions.... Pin
leppie29-Oct-02 6:08
leppie29-Oct-02 6:08 
GeneralRe: coding conventions.... Pin
LongRange.Shooter29-Oct-02 8:10
LongRange.Shooter29-Oct-02 8:10 
GeneralRe: coding conventions.... Pin
leppie29-Oct-02 9:34
leppie29-Oct-02 9:34 
GeneralRe: coding conventions.... Pin
LongRange.Shooter29-Oct-02 10:04
LongRange.Shooter29-Oct-02 10:04 
GeneralRe: coding conventions.... Pin
leppie29-Oct-02 10:27
leppie29-Oct-02 10:27 
GeneralRe: coding conventions.... Pin
LongRange.Shooter29-Oct-02 10:48
LongRange.Shooter29-Oct-02 10:48 
GeneralRe: coding conventions.... Pin
waleed riaz29-Oct-02 7:18
waleed riaz29-Oct-02 7:18 
Generali want description of methods Pin
Nisar Ahmed21-Oct-02 19:57
Nisar Ahmed21-Oct-02 19:57 
GeneralRe: i want description of methods Pin
Stephane Rodriguez.22-Oct-02 1:48
Stephane Rodriguez.22-Oct-02 1:48 
Questioncreat a directory ? Pin
imran_rafique21-Oct-02 15:29
imran_rafique21-Oct-02 15:29 
AnswerRe: creat a directory ? Pin
Wjousts21-Oct-02 16:56
Wjousts21-Oct-02 16:56 
AnswerRe: creat a directory ? Pin
Chris Austin21-Oct-02 17:05
Chris Austin21-Oct-02 17:05 
GeneralRe: creat a directory ? Pin
Chris Austin21-Oct-02 17:11
Chris Austin21-Oct-02 17:11 
GeneralRe: creat a directory ? Pin
Stephane Rodriguez.22-Oct-02 1:49
Stephane Rodriguez.22-Oct-02 1:49 
GeneralRe: creat a directory ? Pin
David Stone22-Oct-02 10:20
sitebuilderDavid Stone22-Oct-02 10:20 
GeneralRe: creat a directory ? Pin
James T. Johnson23-Oct-02 17:02
James T. Johnson23-Oct-02 17:02 
GeneralRe: creat a directory ? Pin
David Stone23-Oct-02 17:25
sitebuilderDavid Stone23-Oct-02 17:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.