Blog

Friday, August 20, 2010
less than helpful naming conventions
I had to do a little debugging work today in a system that I'm not too familiar with. I came across this line of code:
bool result = processor.Process();
If your code has reached the level of abstraction where the most meaningful name you can give a class is "Processor", and the most meaningful name you can give the main routine in your class is "Process()", then you may have gotten a little too abstract.

Labels:

posted by Unknown 9:21 PM
0 comments

Comments: Post a Comment


This page is powered by Blogger. Isn't yours?
© 2011 Andrew Huey