TAG: javascript

Service objects in Node.js

In MVC frameworks it’s usual that controllers contain a lot of code and are the hardest part to understand; in consequence - to debug and refactor. Why? One of the answers would be: controllers don’t respect Single Responsibility Principle. Their job starts when they receive an HTTP request,...