Category : clean-architecture

I would like to prepare a code consistent with good programming practices, which will initialize an object A that requires an additional action from object B and clean up after object A is not used anymore. Let’s say I’ve SensorBench class, which is class helping to maintain a couple of sensors. class SensorBench: def __init__( ..

Read more

Let’s say we have a component class like this: class Component: def operation(self) -> str: return f"Performing operation" def another_operation(self) -> str: return f"Performing another operation" We then have a child of component that overrides both of its methods: class ChildComponent(Component): def operation(self) -> str: return f"Performing operation differently" def another_operation(self) -> str: return f"Performing ..

Read more