|
|
|
|
|
by chrisseaton
2095 days ago
|
|
> I really wish Ruby would grow up and deprecate method_missing method_missing is a deliberate and principled part of a message-passing approach to object orientated programming that gives you powerful options for composition and delegation. You can say you don't prefer this style of programming, but it's not well-informed to say it's down to immaturity or ignorance of alternatives on their part. |
|
Also, people always forget to throw NotImplemented errors which can lead to some fun to track down bugs if you make a typo sending a message. Which I guess is why you pretty much have to write tests for everything in ruby. This kind of stuff would be caught by a compiler in other languages.
Disclaimer: I don't buy into the idea of "message passing" or a lot of OOP. They're the microservices of programming languages.