Hi,
I've only skimmed a few chapters, but this is really good stuff!
I'm surprised there's no mention of dependency injection or IOC? 🙂
This is one of my favorite JS patterns:
https://dev.to/mindplay/a-successful-ioc-pattern-with-functions-in-typescript-2nac
I also have different versions of "mostly types" lightweight DI containers in JS - literally just a few lines that work both for objects and functions:
https://gist.github.com/mindplay-dk/64e1f07028c1749e06c4fc2fa8cea785
Maybe this inspires something for your book? I dunno. These are some of my favorite JS patterns for sure. 😊
Hi,
I've only skimmed a few chapters, but this is really good stuff!
I'm surprised there's no mention of dependency injection or IOC? 🙂
This is one of my favorite JS patterns:
https://dev.to/mindplay/a-successful-ioc-pattern-with-functions-in-typescript-2nac
I also have different versions of "mostly types" lightweight DI containers in JS - literally just a few lines that work both for objects and functions:
https://gist.github.com/mindplay-dk/64e1f07028c1749e06c4fc2fa8cea785
Maybe this inspires something for your book? I dunno. These are some of my favorite JS patterns for sure. 😊