Results of "curly brace" survey.
Michael Campbell <[email protected]>
| Newsgroups | gmane.org.user-groups.ajug.members |
|---|---|
| Message-ID | <CAKtB=OBV_iktC3zdTXWHDbVecAFJ9jeGpTYJojBCJ3sLVb5GuA@mail.gmail.com> |
As many of you will remember (and thanks to everyone who filled it out!), I submitted a survey of some code style questions to the AJUG mailing list a week or so ago and promised to let everyone know what the output was. I submit these without comment or analysis. Where there was an obvious choice in an "other" answer, I folded it up into that answer. I apologize for the formatting; I don't have a paid surveymonkey account, so had to cut/paste and try to clean it up as best I could. If you have any questions let me know and I'll try to answer as best I can. ================================ Response Summary Total Started Survey: 57 Total Finished Survey: 57 (100%) PAGE: 1 Where do you put your opening curly braces? - answered question 57 - skipped question 0 End of the current line. 71.9% (41) Beginning of the next line, no further indents past current indentation level. 21.1% (12) Beginning of the next line, indented past current indentation level. 7.0% (4) ======================================== Do you use tabs or spaces to indent? - answered question 57 - skipped question 0 Tabs. 36.8% (21) Spaces. 52.6% (30) Mixed tabs and spaces. 10.5% (6) ======================================== How many spaces (or spaces per tab) is your indent level? - answered question 54 - skipped question 3 2 (Two) 16.7% (9) 4 (Four) 81.5% (44) 8 (Eight) 1.9% (1) Other (4) ======================================== Is your code style (brace placement, indent level, tabs/spaces) mandated or personal choice? - answered question 57 - skipped question 0 Mandated. 31.6% (18) Personal choice. 68.4% (39) Other (4) ======================================== If you could change your curly brace placement policy, what would you change it to? - answered question 52 - skipped question 5 I would change to "end of line". 9.6% (5) I would change to "start of new line, no further indents." 9.6% (5) I would change to "start of new line, indented past current level." 3.8% (2) I am happy with my current policy; I would not change. 76.9% (40) Other (4)