Examples of software architectures (and some architecture patterns) that are thought to be modular, and related notes and principals:
As summarized by ericmoritz on reddit:
"
class AuthenticateMiddleware?(object): def __init__(self, app): self.app = app
def __call__(self, environ, start_response): if authorized(environ['REMOTE_USER'], environ['PATH_INFO']): return self.app(environ, start_response else: start_response("401 Unauthorized", []) return "Permission Denied"
This approach is the WSGI way™. It makes it so that you can integrate any WSGI app regardless of what the framework is. Unfortunately many micro/mega frameworks make it hard to do this.
"
component architecture, event hooks, zca
Paul Everitt's summary of Chris McDonough on pluggable apps: "A plugin-story’s success is directly related to the ruthlessness of the decisions and opinions being made. The more you define the surface area by making the choices, the more viable the plug point. Over-generalization is the enemy."
Compositing is more modular than inheritance
something i dont understand yet; what makes wsgi, rest, so much better than other things only slightly more complex? it seems like it is more than just a power law