Friday, July 2, 2010

Abstract naming

  • using abstract words like handler, processor, manager, holder is dangerous
  • try to reserve abstract naming for abstract classes
  • abstract words are fine if they correspond to the design patterns (factory, visitor, proxy, wrapper, decorator etc)
  • choose one abstract word and stick with it (get vs retrieve, driver vs manager, holder vs wrapper, delegate vs wrapper).
  • whatever you choose - be consist

No comments:

Post a Comment