3 ms·
This seems totally orthogonal to me. Using a totally non-OOP functional style, you can either instantiate state within a function or pass it in from the callin
by sanderjd 4y ago
This seems totally orthogonal to me.
Using a totally non-OOP functional style, you can either instantiate state within a function or pass it in from the calling context, which is the same trade-off that dependency injection targets.
- monero-xmr 4y agoIf you work on a legacy code base with tens of many millions of lines of code, the non-OOP will be a better code base. My opinion.
- sanderjd 4y agoI wasn't disagreeing (or agreeing) with that opinion. It's just orthogonal to whether or not dependency injection is a useful approach.