Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 467 Bytes

File metadata and controls

5 lines (5 loc) · 467 Bytes

Guideline36: Understand the Trade-off between Runtime and Compile-Time Abstraction

  • Be aware of both runtime and compile-time implementations of the Decorator design pattern.
  • Understand that compile-time solutions usually perform better but limit runtime flexibility and encapsulation.
  • Understand that runtime solutions are more flexible and are good at hiding details but perform worse.
  • Prefer a value semantics solution to a reference semantics solution.