Hacker News new | ask | show | jobs
by guelo 1612 days ago
Unless WebServer is the only class that needs dependencies you're either going to have to pass those dependecies repeatedly from class to class or you're going to have a global factory that provides the dependencies to everybody.