How Does This Help Me Build Maintainable Software?
We have looked at a package structure for hexagonal architecture that takes the actual code structure as close to the target architecture as possible. Finding an element of the architecture in the code is now a matter of navigating down the package structure along with the names of certain boxes in an architecture diagram, helping in communication, development, and maintenance.
In the following chapters, we will see this package structure and dependency injection in action as we are going to implement a use case in the application layer, a web adapter, and a persistence adapter.