3 ms·
> The fundamental data structure of data transport between layers is a hash. This is for both incoming and outgoing data from the each layer. There are many ben
by huherto 14y ago
> The fundamental data structure of data transport between layers is a hash. This is for both incoming and outgoing data from the each layer. There are many benefits to this approach. The biggest benefit is that each layer stays decoupled from the other layers and that hashes act as messages passed between the layers.
If I understand correctly, the only thing this is doing is converting a compile time dependency into a run time dependency. But the dependency is there nevertheless in the names of the fields, types, etc.
- programminggeek 14y agoWell for now Obvious is implemented in ruby, so everything happens at runtime. There is no explicit dependency between layers. Dependency injection is used to pass the data jacks into the actions. That allows for incredibly fast tests and pluggable data persistence.