Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Maybe 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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: