Dependency Injection in Crystal

3 Likes

I commented there, and hearted the post. Thanks for the article!

1 Like

Thank you for this really great read!

It’s great to communicate your shard with such informative articles. And it does a good job at explaining the concept of dependency injection and how to use it in with Athena. But it’s not plain Crystal or the only way to do that, so the title might be a bit misleading. But it still serves as an informative resource, even if you’re not using Athena or even Crystal.

Thanks!

True, I mention we’ll be using Athena in the beginning. Showing all this off in pure Crystal would probably turn into more “How to implement DI in Crystal” than “How it can be used”. As its not really a trivial thing…maybe that would be a good idea for another article…

Updated for Athena 0.9.0.