Tag Info

New answers tagged

6

Umm, no? You seem to be missing fairly significant distinctions! The single responsibility principle doesn't encapsulate anything. It does not de-duplicate any behaviors/code/logic. All it says is that a class should do one thing. You can still have two classes that do the same thing. The principle is totally fine with that. The single source of truth ...


7

They're two different principles. Pretty much the only thing they have in common is the word "single." Single Source of Truth is the end result of the process of normalizing a database. Every piece of entity information is stored once, and only once. Single Source of Truth explains why we put Customers in one table, and Products in another. By ...


0

Single Responsibility Principles says that each software module should have only one reason to change. On a recent article Uncle Bob explained "reason to change", However, as you think about this principle, remember that the reasons for change are people. It is people who request changes. And you don't want to confuse those people, or yourself, by mixing ...



Top 50 recent answers are included