News for hackers. Stuff that matters.
Re:Ruby's Exceptional Creatures by p_l on Sunday January 28, 2024 @10:09PM (#39172288)
method_missing is a tiny offense compared to what was getting popular at one point - creating classes by forking metaclass and injecting methods into... without knowing you're doing so (something IIRC got lost between people there...)

Result was objects that shared no structure, no field

Re:Ruby's Exceptional Creatures by pantulis on Monday January 29, 2024 @03:11AM (#39173949)
Do you mean the class << self pattern?
Re:Ruby's Exceptional Creatures by matheusmoreira on Monday January 29, 2024 @03:18AM (#39173991)
That's what I thought as well. If someone's opening metaclasses to define singleton methods they probably know all about the Ruby object model. I don't see how it could be done "without knowing you're doing so".
Re:Ruby's Exceptional Creatures by p_l on Monday January 29, 2024 @05:01AM (#39174615)
The people who did it first did understand the meta model.

Unfortunately some people started following without full understanding. I wasn't at forefront of things back then, so I only noticed when the people who did know better started to writing about abuse of this technique.