4 ms·
I think that misses the point. Ruby doesn’t have macros! The metaprogramming makes it possible to create very readable DSLs but it’s all very consistent not “ma
by transfire 4y ago
I think that misses the point. Ruby doesn’t have macros! The metaprogramming makes it possible to create very readable DSLs but it’s all very consistent not “magical” like macros.
At the end of the day coding is hard. I’d rather have nice DSLs to learn than verbose spaghetti to read.
- kayodelycaon 4y agoAbsolutely. DSLs are a great application of metaprogramming. Same with libraries like ActiveRecord. Metaprogramming in a pull request at work? Nope. I'm going to smack some knuckles with a ruler. :)
- scruple 4y agoDepends. In library code? Great (probably). In application code? That's a paddlin'.
- toomanyrichies 4y agoI chuckle-snorted at the Simpsons reference. Thanks you for that.