| Dependency Injection: Vital or Irrelevant? | [ Prev | Home | Next ] |
A junior programmer presented the following code for review …
public class Heater {
public void on() { ... }
public void off() { ... }
}
public class PotSensor {
public boolean isCoffeePresent() { ... }
}
Those …’s are where all the messy details are hidden.
| O'REILLY® OSCON 2005 | Copyright © 2005 by Jim Weirich (Some Rights Reserved) |