Inspired by Mr. Robert C. Martin’s episodes on SOLID principles that I’ve watched lately, and by the idea of “programming to interfaces” I’ve tried to come up with a schema that would allow me to have the concerns separated, but still composable.
These are a few modules from an Angular project.
So, I have an AuthenticationService
module that does user account house-keeping:
// app/authentication-service/authentication-service.js
(function() {