Skip to content

Dependencies #222

@mindplay-dk

Description

@mindplay-dk

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. 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions