DEV Community

Discussion on: Node.js Folder Structure

slimcoder profile image
Slim Coder Author

I also write test.
I was thinking about changing it to follow SRP and then DI and make a factory within each and every responsibilities.

Thread Thread
asamolion profile image
Muhammad Osama Arshad

What's SRP and DI?

Thread Thread
slimcoder profile image
Slim Coder Author • Edited on

SRP: Seperation of Responsibility Principle.
DI: Dependency Injection

Thread Thread
asamolion profile image
Muhammad Osama Arshad

and these are used for?