|
CodingConventions
Coding conventions that contributors to this project should follow
Disclaimer: this page is a work in progress Code ownershipNotwithstanding this is an open-source project, there is a sense of ownership in the code contributors submit via check-in or patches. Ownership can explicitly transfer when the owner asks or authorizes someone else to take over a feature. Ownership can implicitly transfer if a contributor has not participated by email or coding contributions in the last several months and someone else picks up ownership, usually by studying the code and fixing bugs in it. Coding etiquette suggests that before you change code you didn't write, you should email the owner of the code and clear it with him or her first, perhaps with the proposed patch. Coding StyleGoalsAs many developers from various OS and IDE backgrounds contribute to this project, we seek to achieve a uniform coding style for these reasons:
DetailsWe haven't nailed down a standard yet, as recent snaps of our source tree will show. We have a variety of coding styles throughout the project. Some have suggested we adopt IDesign's CSharp Coding Standard. It's comprehensive and has some very good ideas. Rather than force a single coding style on the entire project, another option to consider is let the owner of a particular feature within the project determine the coding style. In large projects (for example in at least some divisions at Microsoft) this is the only way to go, as you'll rarely if ever get more than a dozen smart software engineers to agree on a single standard. In this approach, you respect the coding style present in any existing file and work to preserve it whenever you add to or modify the code. CommentsIf you have comments, feel free to post comments at the bottom of this page. |
Sign in to add a comment
