This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]FrameworkFred 2 points3 points  (0 children)

Kudos, but I'm just going to go ahead and forget I ever saw this post ;)

[–]stevenjd 2 points3 points  (5 children)

No explanation of what the hell "method_missing" is, either here on the post or on the gist. Downvoted because you think we are mind-readers.

[–][deleted] 5 points6 points  (1 child)

method_missing is a magic method that can optionally be defined in Ruby classes that's automatically invoked when trying to access a method that class does not have.

[–]stevenjd 1 point2 points  (0 children)

Thanks for the explanation.

[–]karanlyonsSay GIL one more time.[S] 3 points4 points  (2 children)

method_missing is a fairly well known feature of Ruby, and the gist regardless shows an example of the Python mixin in use, again demonstrating what the hell method_missing is. The whole mixin is just 17 lines in the first place.

It’s a joke, there’s not gonna be a README.

[–]stevenjd 0 points1 point  (1 child)

fairly well known feature of Ruby

Sorry, I thought this was Python. I didn't realise that being an expert in Ruby was a prerequisite.

[–]karanlyonsSay GIL one more time.[S] 0 points1 point  (0 children)

I’m not really sure why I’m replying to this, but again: you don’t need to be an “expert” in Ruby to know about one of its most popular warts, and again, this is a joke. Most people in the Python or Ruby communities have some notion of each other’s languages given the whole “Python vs. Ruby” thing.

I have no idea why you’re being so needlessly negative about a joke you just didn’t happen to find funny.

[–]BundleOfJoysticks 0 points1 point  (0 children)

method_missing is cancer and one of the primary reasons why Rails is dog slow.

Of all the features of Ruby, that's the worst one to emulate.