Click here to Skip to main content
15,891,473 members

Survey Results

Do you have a coding style?   [Edit]

Survey period: 7 May 2012 to 14 May 2012

Do you have a consistent way in which you format code, arrange files, methods, your projects, your comments? Or is it all a little ad lib? Do you have, in short, a Coding Standards Bible that you adhere to?

OptionVotes% 
I work to a strict, fixed coding standard12212.68
I work to a well defined standard that occasionally changes33434.72
I work to a clear style that constantly evolves.35036.38
I sometimes write some of my code against a standard959.88
No standards.616.34



 
GeneralCoding style Pin
AmitKumar8910-May-12 18:03
AmitKumar8910-May-12 18:03 
GeneralOddly missing option Pin
Tom Clement10-May-12 7:07
professionalTom Clement10-May-12 7:07 
GeneralMy own style could diffrent Pin
Md. Marufuzzaman9-May-12 0:43
professionalMd. Marufuzzaman9-May-12 0:43 
GeneralRe: My own style could diffrent Pin
S.P.Tiwari18-May-12 0:29
professionalS.P.Tiwari18-May-12 0:29 
GeneralWe have a standard but it's never followed Pin
tom14438-May-12 2:32
tom14438-May-12 2:32 
GeneralFollow standards Pin
P.Salini8-May-12 0:51
P.Salini8-May-12 0:51 
NewsRe: Follow standards Pin
Eddy Vluggen8-May-12 8:32
professionalEddy Vluggen8-May-12 8:32 
GeneralRe: Follow standards Pin
aojepojefpoejafpeoj8-May-12 9:57
aojepojefpoejafpeoj8-May-12 9:57 
AnswerRe: Follow standards Pin
Eddy Vluggen8-May-12 10:57
professionalEddy Vluggen8-May-12 10:57 
GeneralRe: Follow standards Pin
aojepojefpoejafpeoj8-May-12 11:02
aojepojefpoejafpeoj8-May-12 11:02 
GeneralRe: Follow standards Pin
Eddy Vluggen13-May-12 9:04
professionalEddy Vluggen13-May-12 9:04 
GeneralRe: Follow standards Pin
P.Salini8-May-12 18:12
P.Salini8-May-12 18:12 
GeneralStandards Pin
Ovaix Awan7-May-12 20:22
Ovaix Awan7-May-12 20:22 
GeneralStrict Standard PinPopular
koolprasad20037-May-12 20:04
professionalkoolprasad20037-May-12 20:04 
GeneralRe: Strict Standard Pin
AlexCode8-May-12 20:49
professionalAlexCode8-May-12 20:49 
GeneralAxe Murderer PinPopular
quinton19697-May-12 9:41
quinton19697-May-12 9:41 
GeneralRe: Axe Murderer Pin
CDP18028-May-12 0:20
CDP18028-May-12 0:20 
GeneralRe: Axe Murderer Pin
quinton19699-May-12 10:09
quinton19699-May-12 10:09 
GeneralRe: Axe Murderer Pin
Xiangyang Liu 刘向阳9-May-12 5:44
Xiangyang Liu 刘向阳9-May-12 5:44 
GeneralStandard vs. style PinPopular
Corporal Agarn7-May-12 5:29
professionalCorporal Agarn7-May-12 5:29 
GeneralRe: Standard vs. style Pin
AlexCode8-May-12 20:47
professionalAlexCode8-May-12 20:47 
GeneralRe: Standard vs. style Pin
Kevin McFarlane12-May-12 13:22
Kevin McFarlane12-May-12 13:22 
GeneralMy basic template is pretty consistent Pin
Gregory Gadow7-May-12 5:26
Gregory Gadow7-May-12 5:26 
The first I do in any class or module is create sections for Storage, Properties, Constructors and Methods. Sections for event handlers, interface implementations, internal classes, enumerations and the like are added if needed. If the code is really complicated, I'll use subsections, like separating public and private methods, or grouping menu handling events away from other controls. In each section, the methods are sorted alphabetically. With this setup, I can look at my code years later and know what is what, and even find stuff faster than I can navigate the search functionality.
GeneralEasy to identify who's code is this... Pin
AlexCode7-May-12 3:27
professionalAlexCode7-May-12 3:27 
GeneralRe: Easy to identify who's code is this... Pin
PIEBALDconsult7-May-12 3:36
mvePIEBALDconsult7-May-12 3:36 

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.