by adelineJoOs · 2y ago · 0 comments
I think that it is good to view generalization as a tool. Like everything in software engineering, it is not an exact since and is influenced by many factors etc. But for me a guiding rule is: "When it is really clear that something will change in the future, then it makes sense to generalize. It is clear enough when you were willing to bet one week of your salary on that the need for generalization arises within X time." (where X is something less up to a year).
Mainly because this communicates intend to future code readers: "Beware, this thing will likely not be alone soon".
No comments yet.