3 ms·
Rubyists, Please Stop Abusing NotImplementedError
- cstump 11y agoNotImplementedError is often misused. In the article I discuss when it should be used and why you probably don't need it.
- dozzie 11y agoPython uses NotImplementedError exactly for the purpose of signaling the method should be overriden by the subclass. And code with almost complete, but not really, interface (i.e. with several methods lacking) looks awful. I would say it's an error on the Ruby language developers' side not to provide means to signal the method needs to be overriden.