Better HN
topnewbestaskshowjobs
Log inSign up

twberger

3 karma · joined Aug 3, 2015 (11y ago) · 2 submissions

Submissions

comment 11y ago · link · parent

When besides mocking would you want to swap out a dependency using an overarching dependency provider rather than an intermediary processor/getter with conditional delegation?

comment 11y ago · link · parent

So, getters? We need X, so we call getX(). getX needs A and B, so it calls getA() and getB(). And so on, until getSomething() just reads input. Please correct me if I'm reading this wrong.