Re:DRY is an over-rated programming principle?
by galaxyLogic on Thursday July 07, 2022 @11:18AM
(#32015191)
Right, if the "truth" is encapsulated inside an Object, it is the single location for that truth.
If you want a "different truth" create another object. And never assume that the truths of different objects must be the same.
That is a difficult condition to achieve in practice we often code based on what we know a method-result "must be, therefore it is ok to divide by it etc."
If you want a "different truth" create another object. And never assume that the truths of different objects must be the same.
That is a difficult condition to achieve in practice we often code based on what we know a method-result "must be, therefore it is ok to divide by it etc."