Fracanto Dependency Injection

Fracanto Dependency Injection #0 — About

Dependency Injection in fracanto

Dependency Injection in fracanto

Dependency Injection (DI) is, alongside the vtable pattern, the second foundational design pattern in the fracanto framework. While the vtable pattern enables the interchangeability of entire subsystems at the framework level (HAL, Panel, IO, Audio), DI solves a problem one layer deeper: How can a peripheral driver communicate with real hardware and still be fully testable on a host machine without hardware?