Stop sharing code
Sharing code is overrated and it’s abused as the solution to code repetition. What’s the alternative? The answer is related to cohesion, code hotspots, and the law of proximity.
Cohesion refers to the degree to which the elements inside a module (e.g. a class) belong…