Friday, February 19, 2010

Naming Guidelines

I have often been frustrated by the inability by even Senior Developers To name their classes / methods /properties. This is more of a note to myself.

Here's the thumb rule: Copy the .Net Framework! Fire-up reflector and search the keyword. For me, naming actually can steer design. A well chosen name lends the design appropriate metaphors.

And run StyleCop! Unfortunately, it doesn't complain about names like DalServiceHelper or Utils.CreateZip(...) . More on this later.

No comments: