Comment

Comment by bsaul

Genuinely curious : i've been playing with dependency injection, and really never got to understand the true use of it.

I mean, what's the point of being able to replace an implementation outside the source code itself ? You'd still have to extensively test the thing and recompile it...

Is there more to it than just being able to replace a class by its mock up, for unit testing ?

parent bsaul 12 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton