Lazytwitter: do you believe *efficiency/productivity* gains are a core reason that code reuse is a best practice?
If so, what are the strongest examples/data/arguments? Any counterexamples/arguments?
Esp. interested in quant. est. of cost/benefit ratio.
Maybe #EconTwitter ?
Conversation
Replying to
That was how I thought about code reuse for a long time, but now it's motivated by a) correctness; and b) reifying my mental model.
A: It's hard to write and maintain correct code in many places.
B: I want the abstraction to capture the way I actually think about the system.
Yes, code reuse can be seen as a consequence of modularity which requires the implementation of a conceptual model.
This is also where the downside is. If you choose the wrong starting abstraction then it will quickly accumulate kludges as it grows.
1
1
It’d certainly be interesting to find a quantitative estimate for it. I think there might be something in discussions of “technical debt”.
1
1
Show replies


