Re:OOP practiced backwards is "POO"
by swannodette on Saturday December 11, 2010 @02:51AM
(#1994439)
Missing the point entirely. I don't want your module. I want/like your design and I want to provide my own implementation.
[ Parent
| on HN ]
Re:OOP practiced backwards is "POO"
by russellperry on Saturday December 11, 2010 @11:41AM
(#1995110)
I get what you're saying, but Ruby already allows you to do this. If you like an API/design, then go ahead and reimplement it however you like. There are no class-level contracts anywhere in Ruby that would prevent this, and therefore interfaces provide no additional level of abstraction that Ruby doesn't already have.
Define exception throwing "not implemented" methods in the module.