3 ms·
Why do you feel it's superior? It feels distinctly clunkier to me. I'm not opposed to new things, but powerful DSLs are one of Ruby's best perks.
by cheald 14y ago
Why do you feel it's superior? It feels distinctly clunkier to me. I'm not opposed to new things, but powerful DSLs are one of Ruby's best perks.
- moeffju 14y agoBecause then you have to handle things like route precedence, method routing, "resource" mapping, etc. The `def route` way is very linear, you have one point of entry and that's it, the code just flows from there. With a bunch of `match /xyz` statements, or even a routing layer, the connection is less direct and potentially more prone to bugs.