Heuristic: Context Independence

February 2nd, 2021

Heuristic: Context Independence

  • hides too much / wrong information

whatever an object needs to know about the larger environment it’s running in must be passed in

  • permanent relationships (constructor argument)

  • transient relationships (method argument)

 

(src: Book: Growing Object Oriented Software, Guided By Tests - Steve Freeman & Nat Pryce)