June 6, 2008

Coding Styles

Recently our team prepared a coding guideline document to follow in our day to day coding. As always it leads to loads of debates, things like variable naming, method naming and so forth. What I personally like is to keep things very simple. i.e. string name vs string strName, I prefer string name. Consistency in coding is very important, what it mean is we have to follow the same coding style until the project end. Have look at Microsoft's StyleCop