How to Use Dependency Injection in Functional Programming

Опубликовано: 12 Октябрь 2024
на канале: Jesse Warden
1,476
43

I'll show one of the problems Dependency Injection solves in Object Oriented Programming code bases, then show a similar technique in Functional code. You just use function arguments. Once you grok this, you'll be equipped to grok the more advanced partial application use.

Blog Post: https://dev.to/jesterxl/how-to-use-de...
Mark Seemann's DI video:    • From Dependency injection to dependen...  
Code: https://github.com/JesterXL/dependenc...
JavaScript Pipeline Operator: https://github.com/tc39/proposal-pipe...
Babel Plugin: https://babeljs.io/docs/en/babel-plug...