Sweary TL;DR: Dependency Injection

I got fed up with how long-winded software pattern articles are, when often the base concepts are quite simple. In this highly-irregular micro-blog segment, I’ll give you a sweary TL;DR of some of the most common patterns out there.

From Wikipedia

An injection is the passing of a dependency (a service) to a dependent object (a client). The service is made part of the client’s state. Passing the service to the client, rather than allowing a client to build or find the service, is the fundamental requirement of the pattern.

TL;DR

Giving something its shit, instead of having that something make its own shit.

Leave a Reply

Your email address will not be published. Required fields are marked *