News for hackers. Stuff that matters.
Re:From dependency injection to dependency rejection by bbcbasic on Monday February 06, 2017 @02:59AM (#13577444)
> only answer that speaks to me

So what if a dev home brews parser for instance, and you use that to read in files from a legacy system via ftp. You wouldn't test the parser code on its own? You test it all end to end?

Re:From dependency injection to dependency rejection by DenisM on Monday February 06, 2017 @04:14PM (#13584054)
If it's just a parser you need to test, there is no need for DI - just give the parser some files to chew on, and test it directly.

If the "parser" has built-in logic to orchestrate remote file retrieval over FTP then DI is warranted, as per the other part of my previous answer.