News for hackers. Stuff that matters.
Re:Ask HN: Concepts that clicked only years after you first ... by sanderjd on Sunday January 01, 2023 @11:22AM (#34207607)
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.

Re:Ask HN: Concepts that clicked only years after you first ... by monero-xmr on Sunday January 01, 2023 @12:13PM (#34208226)
If 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.
Re:Ask HN: Concepts that clicked only years after you first ... by sanderjd on Sunday January 01, 2023 @01:04PM (#34208841)
I wasn't disagreeing (or agreeing) with that opinion. It's just orthogonal to whether or not dependency injection is a useful approach.