Differences

This shows you the differences between two versions of the page.

Link to this comparison view

it:ad:patterns:naming_strategies [2019/03/24 12:17] (current)
Line 1: Line 1:
 +# IT:​AD:​Patterns:​Naming Strategies #
  
 +
 +
 +<callout type="​Navigation"​ class="​small">​
 +* [[../​|(UP)]]
 +{{indexmenu>​.#​2|nsort tsort}}
 +
 +
 +</​callout>​
 +
 +
 +## About ##
 +
 +A good name is worth its weight in ...Megabytes.
 +
 +
 +## Notes ##
 +
 +Consider using the following:
 +
 +* `xxxProvider`:​ something that provides something -- but doesn'​t handle. Usually expects a single argument.
 +    * Examples:
 +        * `ResourceProvider`
 +* `xxxHandler`:​ whereas a Provider only hands out data, a handler handles incoming data.
 +    * Examples:
 +        * `POXHttpHandler`:​ it recieves POX requests, and hands back POX responses.
 +* `xxxFactory`:​ creates a new (simple) object and sets some of its parameters.
 +    * See: [[IT/​AD/​Patterns/​Factory/​]]
 +* `xxxBuilder`:​ create composite objects.
 +    * See: [[IT/​AD/​Patterns/​Builder/​]]
 +    * Example:
 +        * `InvoiceBuilder`:​ as it builds the new invoice with a set of child line items.