The principles for good software design apply on all levels. In the same way that we want to write readable code, and for that we need to mind the intention revealing degree of the code, the architecture also has to express the intent of the problem it is trying to solve.
All these ideas are interconnected. The same intention revealing that ensures our architecture is defined in terms of the domain problem also leads us to abstract details as much as possible, create layers of abstraction, invert dependencies, and separate concerns.
When it comes to reusing code, Python packages are a great and flexible alternative. Criteria, such as cohesion and the single responsibility principle (SRP), are the most important considerations when deciding to create a package. In line with having components with cohesion and few responsibilities, the concept of microservices comes into...