Re:Printf(“%s %s”, dependency, injection)
by jcelerier on Tuesday October 19, 2021 @10:39AM
(#28918591)
> Even the Linux kernel is full of this stuff, kernel modules are literally this and I've never read a single comment talking about dependency injection.
here's one: https://stackoverflow.com/questions/5925270/how-to-do-depend...
Re:Printf(“%s %s”, dependency, injection)
by matheusmoreira on Tuesday October 19, 2021 @01:00PM
(#28920438)
That's a stackoverflow question, not Linux kernel source code. Looks like everyone there is realizing the fact dependency injection is just a simple technique that's been around for a long time. Just like I said. Mocks? Just provide a different function. It's easy.
People invented this because Java and its friends made it so insanely hard to do it that you needed to invent convoluted techniques to accomplish the same task.