Click here to Skip to main content
15,902,938 members

Survey Results

How important is formatted code?

Survey period: 3 Jan 2022 to 10 Jan 2022

How and when should code be formatted? Brackets or Begin statements always on a new line? Always spaces after comment markers? A different style for different languages? Or whatever came out of the keyboard?
OptionVotes% 
All source code should be formatted according to a generally accepted style for that language36951.83
All code in my org must be formatted to our org's style guide19026.69
All code within a single project should be consistently formatted31444.10
All code, everywhere, should be formatted to a single style, as much as a given language allows679.41
Code should be neat and readable. That's good enough.21029.49
Format your code however you want, I'll format my code how I want567.87
I really don't care how code is formatted.162.25
Respondents were allowed to choose more than one answer; totals may not add up to 100%



 
Generalas long as you can get away with murder ... whatever ... Pin
BillWoodruff7-Jan-22 6:53
professionalBillWoodruff7-Jan-22 6:53 
Generaland python be like no - the code and style be the same Pin
maze36-Jan-22 0:17
professionalmaze36-Jan-22 0:17 
GeneralRight Click|Format Document Pin
honey the codewitch4-Jan-22 4:23
mvahoney the codewitch4-Jan-22 4:23 
GeneralRe: Right Click|Format Document Pin
Greg Utas4-Jan-22 4:51
professionalGreg Utas4-Jan-22 4:51 
GeneralRe: Right Click|Format Document Pin
honey the codewitch4-Jan-22 5:11
mvahoney the codewitch4-Jan-22 5:11 
GeneralRe: Right Click|Format Document Pin
Greg Utas4-Jan-22 5:41
professionalGreg Utas4-Jan-22 5:41 
GeneralRe: Right Click|Format Document Pin
Ravi Bhavnani4-Jan-22 9:16
professionalRavi Bhavnani4-Jan-22 9:16 
GeneralRe: Right Click|Format Document Pin
Greg Utas4-Jan-22 10:55
professionalGreg Utas4-Jan-22 10:55 
GeneralRe: Right Click|Format Document Pin
honey the codewitch4-Jan-22 11:12
mvahoney the codewitch4-Jan-22 11:12 
GeneralRe: Right Click|Format Document Pin
den2k884-Jan-22 21:32
professionalden2k884-Jan-22 21:32 
GeneralRe: Right Click|Format Document Pin
Ravi Bhavnani4-Jan-22 23:39
professionalRavi Bhavnani4-Jan-22 23:39 
GeneralRe: Right Click|Format Document Pin
honey the codewitch4-Jan-22 23:42
mvahoney the codewitch4-Jan-22 23:42 
GeneralCode should be collapsible Pin
Cpichols4-Jan-22 1:21
Cpichols4-Jan-22 1:21 
GeneralThen there is: Pin
AndyChisholm4-Jan-22 0:50
AndyChisholm4-Jan-22 0:50 
GeneralUse Code Beautifiers as needed. Pin
ergohack3-Jan-22 7:06
ergohack3-Jan-22 7:06 
Praise... and stop the useless formatting discussion Pin
0x01AA4-Jan-22 9:42
mve0x01AA4-Jan-22 9:42 
GeneralPerhaps ... Pin
Amarnath S3-Jan-22 3:12
professionalAmarnath S3-Jan-22 3:12 
GeneralRe: Perhaps ... Pin
Sander Rossel3-Jan-22 5:46
professionalSander Rossel3-Jan-22 5:46 
GeneralMissing option: All source code should be formatted according to MY specification Pin
Marc Clifton3-Jan-22 3:08
mvaMarc Clifton3-Jan-22 3:08 
GeneralRe: Missing option: All source code should be formatted according to MY specification Pin
Phil J Pearson5-Jan-22 0:44
Phil J Pearson5-Jan-22 0:44 
GeneralWhy formatting matters... Pin
Sander Rossel3-Jan-22 1:28
professionalSander Rossel3-Jan-22 1:28 
GeneralRe: Why formatting matters... Pin
Jacquers3-Jan-22 20:15
Jacquers3-Jan-22 20:15 
GeneralRe: Why formatting matters... Pin
honey the codewitch4-Jan-22 4:26
mvahoney the codewitch4-Jan-22 4:26 
GeneralRe: Why formatting matters... Pin
Sander Rossel4-Jan-22 4:40
professionalSander Rossel4-Jan-22 4:40 
GeneralRe: Why formatting matters... Pin
honey the codewitch4-Jan-22 5:14
mvahoney the codewitch4-Jan-22 5:14 
When I get unsatisfactorily formatted code, I'll do a "reformat run", and format every single document on a single check in to keep the source control churn to a minimum. It's a minor inconvenience. In practice I don't like your formatting. I don't like that person's formatting over there, either. I don't even like my formatting half the time. I'm picky*, but also lazy. Laugh | :laugh: So I just expect reformatting as part of the development process.

*And I get pickier when I'm on a team - at that point I'll go in and change my VS autoformatting settings to match the in house style.
Real programmers use butterflies

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.