Folks get attached to their coding styles, I know I do, it sounds like Leon (another Aussie blogger) is attached to hungarian notation. Coding styles are closely related to coding standards (its when someone tries to push their coding style onto others).
Coding standards is one subject that gets raised alot by our clients. Once upon a time I would have dug out mountains of coding standards documents that I have fallen victim to in years past, but these days I like to point them to this piece by Chris Sells. I must be a real hippy because I’m not even that fussed about number one. The simplicity is beautiful I think.
Having said that I do generally try to stick to the “external” naming conventions recommended for the platform I am using. This means taking the time to read the platform documentation. Even if they don’t have specific guidance the actual class libraries that ship out of the box usually provide enough of a hint.
At the moment, when creating the source file, the only wart I use is a ‘m_’ in front of private fields (protected and public fields to be named according to platform guidance). But I was contemplating changing that in the next few days, just to see how it goes. I think doing things like using methods as comments has a greater impact on readability and mantainability anyway.
When did you last change your coding style?