So... we've been given new coding standards where I work. I'm ok with that. But one of the conventions is driving me CRAZY!
Normally, I'd write something like...
(Yes, I know about auto-implemented properties; this is just an example.
)
But under the new coding standards, it would look like this.
I have spent *so* much time debugging typing errors now... the _ clearly separated my property store from my property name. But this... AIEEEEEE!
I just had to vent...
Normally, I'd write something like...
Code: (csharp)
private string _propertyX = string.Empty;
public string PropertyX
{
get { return this._propertyX; }
set { this._propertyX = value; }
}(Yes, I know about auto-implemented properties; this is just an example.
)But under the new coding standards, it would look like this.
Code: (csharp)
private string propertyX = string.Empty;
public string PropertyX
{
get { return this.propertyX; }
set { this.propertyX = value; }
}I have spent *so* much time debugging typing errors now... the _ clearly separated my property store from my property name. But this... AIEEEEEE!
I just had to vent...
















That is the kind of coding standard that makes me want to scream "Why?!". Usually coding standards are supposed to make code easier to read. This just makes you second guess every variable. Is it a property or no? Do we want to set it using the property store? 



- carpe noctem