33 ms·
I just inherited a TypeScript project that made heavy use of Dependency Injection™ by using a 3rd party library. After spending 6 months on a modern react proj
by jameshush 6y ago
I just inherited a TypeScript project that made heavy use of Dependency Injection™ by using a 3rd party library.
After spending 6 months on a modern react project without any classes I had forgotten about Dependency Injection™ in OOP land and gotten used to just doing dependency injection by passing in parameters in a function.
I'm really happy React is introducing functional programming principals to new engineers. Obviously though we still find ways to over complicate things (aka using Redux in a 4 file project with only 5-6 pieces of state to manage) but humans will always find a way to do that :)