Re:U.S. sues Apple, accusing it of maintaining an iPhone mon...
by cryptonector on Friday March 22, 2024 @04:29PM
(#39794500)
I think of dependency injection as a generalization of LD_PRELOAD, the point being that the "injection" is done via configuration that is external to the application's code.
[ Parent
| on HN ]
Re:U.S. sues Apple, accusing it of maintaining an iPhone mon...
by BlackFly on Saturday March 23, 2024 @01:00PM
(#39801345)
That's a good take, I hadn't really thought of that one before and I had certainly used LD_PRELOAD or some incarnation thereof (forgive my memory is was more than a decade ago) to swap out different implementations of the same API.