News for hackers. Stuff that matters.
Re:Rewrite it in Rails by PittleyDunkin on Monday November 04, 2024 @01:18PM (#42044456)
the extensive use of method_missing doesn't help either.
Re:Rewrite it in Rails by rco8786 on Monday November 04, 2024 @02:07PM (#42044963)
That's been gone since Rails 4 or 5 (we're on 8 now)
Re:Rewrite it in Rails by semiquaver on Monday November 04, 2024 @01:36PM (#42044658)
Can you point to any substantial places in rails where method_missing is actually used? The only place I’m aware of is dynamic finder methods like find_by_foo, which IIRC were removed years ago. Most of the more magical ORM stuff is implemented using boot-time metaprogramming things like define_method.
Re:Rewrite it in Rails by PittleyDunkin on Monday November 04, 2024 @02:01PM (#42044910)
I'll take your word for it—I'm currently blessed by working outside of the rails ecosystem so my knowledge is likely out of date.

EDIT: I'm not bothered by this, but this is a very odd comment to downvote. What on earth is so offensive or distracting about saying someone else is likely more knowledgable than you are? Very confusing.