Relative Content

Tag Archive for inversion-of-control

Low coupling when using sealed classes?

Typically, when trying to decouple classes I use Inversion of Control. Lately I’ve been using a third-party library whose components are sealed. Are there any design patterns to handle this situation? They have multiple component classes that’re sealed and I quite often need to use them. I was about to inherit from it and give it an interface to operate through until I noticed it was sealed and impossible to do so.

Low in coupling and high in cohesion in python

What are some resources and examples of structuring large project in python for non-web application, i.e. such as writing an AI inference service? The question is not how to write ML models or anything like, but more so, how to write and structure a python application in a way that reduces coupling and increases cohesion?