Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think SRP in terms of using classes with dependency injection. If you are injecting an instance of a class you only want it do do one thing and changing the class being injected you only want it to change one piece of behavior. If the class has more than one responsibility it would mean that injecting dependencies would become unmanageable.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: