Make testing (later) easier and your code more flexible with 1 small change

So, if you’re like me from a few years ago, you know you should be testing, right? Like, everybody’s doing it, and you’re totes not a real coder if you’re not.

But you’re not, right? I wasn’t. (Maybe I’m still not; I’m not telling.) But you still want to write software “correctly”, and besides, you’re definitely going to come back later & write some tests for this code. Sure…

And you’ve come across dependency injection & how it’s “the right way”, but WTF does that mean, and why should you care? Great question; please continue reading.

Dependency injection: defined-ish

I looked up the Wikipedia definition here, and I immediately fell asleep. But – I’m back! And maybe I can be helpful.

Click here to find out if I’m helpful!