Option-operand separation

From CSSEMediaWiki
Revision as of 10:04, 5 October 2009 by BenMcDonald (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Methods containing operands, necessary augments, should be separated from methods containing options, augments not vital to the method.

Justification:

  • Methods containing options will change more frequently than methods containing operands and so should be isolated.
  • Makes code clearer and removed hidden, hard to find in code method arguments.
  • Removes the need for method polymorphism, a practise that makes code hard to read and reuse.

Devised by Bertrand Meyer

Personal tools