- UI should be an afterthought
- Write code that allows to sepearate business logic frow UI.
- Write code that allows to inject any hard-to-test, too-verbose, want-this-mocked stuff logic.
- It has special place for handling business logic, called middleware.
- Popular middleware have a mechanism for context injection. If you are writing your own custom middleware, then you probably should think about adding this too.