4 ms·
I'm a small brained primate but when I get down to what dependency injection is doing it's like my firmware written in C setting a couple of function pointers i
by Gibbon1 1y ago
I'm a small brained primate but when I get down to what dependency injection is doing it's like my firmware written in C setting a couple of function pointers in a radio handler's struct to tell it which SPI bus and DIO's to use. Which seems trivially okay.
- jen20 1y agoMaybe you could even use a different handler in tests!? Shocking that you can do this without using an IoC container and a thousand lines of YAML! /sarcasm (in case anyone doubted it).