On Long Identifier Names

I'm all for using descriptive names to identifiers (classes, methods, properties, and so on), however, I also try to keep them to a reasonable length. Too long names are harder to remember, easier to misspell (even with intellisense) and annoying all around.

Sometimes, however, you can't avoid ending up with the long ones. I defined today an interface called IMsmqSubscriptionPersistenceService. 35 characters. That's almost half of the standard 80 column line. And, of course, I needed an implementation: the SqlMsmqSubscriptionPersistenceService class. That's 2 extra characters. Oh well!

Comments (1)

Ayende RahienOctober 12th, 2006 at 6:58 pm

Just try doing the same with generics.
IDictionary<Employee, IList<Salary>> salariesByEmployees;
That is 57 characters, and we haven’t even started doing something yes=t

Leave a comment

Your comment