Coding conventions
<rant>
Most of the coding convention I've seen being used by SW houses seems to promote wastage of lines. I suspect that since in many cases code size is measured in LOC it actually helps quoting a larger number. E.g. I start getting a tad irritated when I have to write code as follows
// Why do I have to put in the enclosing curly braces :(
if(flag)
{
Func();
}
// Can't I just use get { return foo; } and set {foo = value; }
public CFoo Foo
{
get
{
return foo;
}
set
{
foo = value;
}
}
</rant>