I am looking for coding guidelines developers should follow while writing C#/ASPX/SQL code, so that merging into other branches is smooth if not seamless.
|
It's more a matter of proper SCM usage than coding style. However, a few coding style specific guidelines should be followed:
And SCM-usage wise:
|
|||
|
|
|
Provided you're team is working on the trunk rather than doing feature branches. Martin Fowler will tell you they're bad in this article Ensure that:
Then you shouldn't have too much pain in merging. |
||||
|
|
|
Take the "If it ain't broke, don't fix it" mantra even further - if it is broke, fixing it will cost the time to fix and the time to fix the merge conflict. Most of the time you will get lucky, and not have a merge conflict. The rest of the time, you will want to be really sure the pain was worth it. i.e. If you don't like the formatting, learn to live with it. Don't make changes that are not material to the feature that you are working on. |
|||||||||
|
I don't think coding guidelines per se will be very helpful, but some best practices in using your chosen version control tools will help:
|
||||
|
|
