Message from JavaScript discussions

September 2017

— Thank you


Guys, what do you think about using an onion architecture in JS applications? It kinda forces the developers to use OOP, but then on the other hand, it makes the code much more maintainable

— What on earth is onion architecture?

— I know it's an architecture used mostly in .NET/Java apps... but was wondering

— Http://

— Heh, that image makes no sense

— Why do you think it makes no sense?

— Domain? what is domain in this context?
tests only test "application services"??
only application services touch files and dbs?

Message permanent page

— Wtf

— Well the domain in this and most software contexts refers to all the business logic. And what that image intends to represent is an architecture where the tests interact with the application services not the domain nor the model layers

Message permanent page

— Sames as the UI or the infrastructures such as db, or others

— So what if there's a bug in the inner layers?