skin-vs-guts-extension-spectrum

Status: IN

OO design offers a spectrum of extension mechanisms from external to internal: Decorator changes the skin (external wrapping with run-time flexibility), Strategy changes the guts (internal delegation with algorithm interchangeability), and Template Method varies specific steps via inheritance — each trading coupling for control at a different point.

Justifications

Three patterns form a spectrum from external wrapping to internal algorithm replacement

Depends on (SL): decorator-vs-strategy-skin-vs-guts, gof-template-method-vs-strategy-inheritance-vs-delegation, decorator-dynamic-alternative-to-subclassing

Depended on by

JSON