News for hackers. Stuff that matters.
Re:I Love Ruby by mplewis on Monday December 18, 2023 @05:55PM (#38689561)
Rails is the biggest Ruby project and it’s heavily based on metaprogramming. Even Rubymine has trouble finding the canonical definition of a named method sometimes – it has to guess. I love Ruby but I totally understand this criticism.
Re:I Love Ruby by sodapopcan on Tuesday December 19, 2023 @08:17AM (#38695139)
Rails is a library, though, the advice applies to application/business code. Metaprogramming is extremely useful for making really simple-to-use libraries. If your business logic is full of metaprogramming, that's more of a problem, especially in this day of age where it's common for developers are only sticking around at any given job for 2 to 3 years.