3 ms·
I never create a class hierarchy or implementation layer as a reuse concern, even though this accusation comes up often (from naive FP people). It is totally ju
by seanmcdirmid 11y ago
I never create a class hierarchy or implementation layer as a reuse concern, even though this accusation comes up often (from naive FP people). It is totally just a way of isolating and modularizing complexity. If you want reuse, look elsewhere, like in libraries or components. Designing nice abstractions is hard in any paradigm: the last time I was in a room with the Haskell folks (like SPJ), they spent a lot of time talking about building elegant abstractions for solving problem X in Haskell, where coming up with those abstractions didn't seem easy at all.
I don't think one can really teach reusable abstraction design like one can teach algorithms. There is no science behind it, there is no way to "measure" it. You can't create exam questions about it.