Click here to Skip to main content
15,898,036 members

Survey Results

Do you have formal coding guidelines in your company?   [Edit]

Survey period: 29 Aug 2005 to 4 Sep 2005

Do you have guidelines explaining coding standards such as naming conventions, error handling and inline documentation requirements, or is it every man for themselves?

OptionVotes% 
Yes, and they must be adhered to22822.18
Yes, but they are fairly casual29228.40
No, we just try to be consistent with one another31730.84
No19118.58



 
GeneralConsistency Pin
Marc Clifton30-Aug-05 14:47
mvaMarc Clifton30-Aug-05 14:47 
GeneralRe: Consistency Pin
Elrond31-Aug-05 1:47
Elrond31-Aug-05 1:47 
GeneralRe: Consistency Pin
Xiangyang Liu 刘向阳31-Aug-05 13:02
Xiangyang Liu 刘向阳31-Aug-05 13:02 
GeneralRe: Consistency Pin
Marc Clifton31-Aug-05 15:50
mvaMarc Clifton31-Aug-05 15:50 
GeneralRe: Consistency Pin
Xiangyang Liu 刘向阳31-Aug-05 23:33
Xiangyang Liu 刘向阳31-Aug-05 23:33 
GeneralRe: Consistency Pin
Marc Clifton1-Sep-05 1:42
mvaMarc Clifton1-Sep-05 1:42 
GeneralRe: Consistency Pin
Judah Gabriel Himango1-Sep-05 9:37
sponsorJudah Gabriel Himango1-Sep-05 9:37 
GeneralEmbrace Convention Pin
Daniel Vaughan29-Aug-05 16:45
Daniel Vaughan29-Aug-05 16:45 
Yes, writing code is an art. Yet the art is not in its presentation, but rather its meaning. Because of this, code style conformity is a virtue. When one reads two novels by two different authors, one doesn’t expect there to be differences in the layout of sentences on the page, nor differences in characters used to express inherent meaning. Rather, it is through conformity that one is freer to appreciate the writing. Indeed nonconformity in coding style detracts from its meaning, and obscures interpretation.

When I code in Java, I use Sun's guidelines[^]. When I code in C#, I use Microsoft's[^]. Microsoft spent a lot of energy coming up with their guidelines and made some good choices.

I wonder how many C# developers are aware of the Microsoft guidelines, and who have read and follow the conventions therein. I know there are many that do not. Curiously, from my own observations, the proportion of Java developers that adhere to Sun’s guidelines appears to be greater than the proportion of C# developers that adhere to Microsoft’s. One may speculate on the reason for this disparity.

Code conventions are important in team environments.
I find it a hindrance reading C# code with Hungarian notation or fields prefixed with ‘_‘ or ‘m_’; or needless use of ‘this’. This is because such styles are not what I’m used to. When I first started using C#, I adopted the use of a prefix ‘_’ for member variables. Fortunately after a couple of weeks I stopped this practice when I realised it was unnecessary, and that it violated the MS guidelines. I now know that when practices, such as those mentioned above, become necessary it is indicative of poor design.

Indeed code style is a contentious issue. My advice though is to follow the language vendor’s guidelines because it saves a new developer from having to learn your organisations custom style conventions, and expedites collaboration with others outside of your organisation.

Microsoft Design Guidelines for Class Library Developers[^]
Sun Code Conventions for the Java Programming Language[^]







Daniel Vaughan
Zen Diaphragm
GeneralCoding guidelines != naming conventions Pin
Nemanja Trifunovic30-Aug-05 4:21
Nemanja Trifunovic30-Aug-05 4:21 
GeneralRe: Coding guidelines != naming conventions Pin
Jörgen Sigvardsson30-Aug-05 10:40
Jörgen Sigvardsson30-Aug-05 10:40 
GeneralConventions for Artists!! Pin
Ali Iqbal Khan29-Aug-05 4:25
Ali Iqbal Khan29-Aug-05 4:25 
GeneralRe: Conventions for Artists!! Pin
Shog929-Aug-05 7:05
sitebuilderShog929-Aug-05 7:05 
GeneralRe: Conventions for Artists!! Pin
Jörgen Sigvardsson30-Aug-05 10:43
Jörgen Sigvardsson30-Aug-05 10:43 
GeneralRe: Conventions for Artists!! Pin
Alvaro Mendez29-Aug-05 9:12
Alvaro Mendez29-Aug-05 9:12 
GeneralRe: Conventions for Artists!! Pin
Sarvesvara (BVKS) Dasa29-Aug-05 15:28
Sarvesvara (BVKS) Dasa29-Aug-05 15:28 
GeneralRe: Conventions for Artists!! Pin
John M. Drescher29-Aug-05 16:32
John M. Drescher29-Aug-05 16:32 
GeneralRe: Conventions for Artists!! Pin
Sarvesvara (BVKS) Dasa2-Sep-05 17:34
Sarvesvara (BVKS) Dasa2-Sep-05 17:34 
GeneralReaching consensus Pin
Nemanja Trifunovic29-Aug-05 2:25
Nemanja Trifunovic29-Aug-05 2:25 
GeneralRe: Reaching consensus Pin
Paul Watson29-Aug-05 3:23
sitebuilderPaul Watson29-Aug-05 3:23 
GeneralRe: Reaching consensus Pin
Gary Wheeler29-Aug-05 7:08
Gary Wheeler29-Aug-05 7:08 
GeneralWhat code casing style do you follow? Pin
Ali Iqbal Khan28-Aug-05 23:24
Ali Iqbal Khan28-Aug-05 23:24 
GeneralRe: What code casing style do you follow? Pin
Gavin Greig28-Aug-05 23:39
Gavin Greig28-Aug-05 23:39 
GeneralRe: What code casing style do you follow? Pin
Paul Watson29-Aug-05 1:23
sitebuilderPaul Watson29-Aug-05 1:23 
GeneralRe: What code casing style do you follow? Pin
Gavin Greig29-Aug-05 2:07
Gavin Greig29-Aug-05 2:07 
GeneralRe: What code casing style do you follow? Pin
Paul Watson29-Aug-05 3:22
sitebuilderPaul Watson29-Aug-05 3:22 

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.