1 vote

Clean code and SOLID principles in WPF/MVVM view models?

I spent three years developing a WPF application for flight test management. Here are some of the principles that I followed: Use a foundational infrastructure, such as Prism, that enables modular ...
user avatar
1 vote
Accepted

How to deduplicate implementation details coupling to the host objects' actions?

Reverse the dependency. The Worker is the class that is supposed to be stopping itself when its container goes to sleep, so let it subscribe to the container. This allows you to avoid repeating ...
user avatar
  • 24.6k
1 vote

How to deduplicate implementation details coupling to the host objects' actions?

Context What is A, What is B? If this was a purely syntactic/implementation question sure fine, why not? The name has no bearing on the question. Unfortunately we really need to know what makes A and ...
user avatar
  • 15.4k

Only top scored, non community-wiki answers of a minimum length are eligible