3 ms·
Totally agree with you re: DI as a way to structure your code. I tend to start with function passing and yeah, when it gets to 5 functions you start putting th
by fleitz 16y ago
Totally agree with you re: DI as a way to structure your code.
I tend to start with function passing and yeah, when it gets to 5 functions you start putting them in a class or other structure that allows you to pass them as a unit. I like using tuples to pass gobs functions because it works better with type-inference in F#
I've just never heard it referred to as DI except in OO (Java) circles.