First of all, let’s ask the logical question “What is a responsibility ?” – In terms of SRP ‘responsibility’ is usually defined as ‘a reason to change’. So we can paraphrase this principle to a ‘Single reason to change’. Indeed this is all it is about. We should design our software in a way that
Object oriented programming and its 4 pillars What is OOP ? From the good old days of procedural programming, we all know how to represent a state in terms of structures and an action in terms of procedures. So what is a state and what is an action? state: knowledge of something, stored information, characteristics
It is a common use case for developers to change or provide some sort of configuration to their running apps. But what if the app is inside a virtual machine. Hypervisors provide encapsulation and isolation of the guest OS from the outside world. How do I communicate with my app then? Should I restart it?