|
|
|
|
|
by shevy-java
219 days ago
|
|
> this is honestly the sort of thing I grew to hate in Ruby But nobody forces you to use a DSL such as rails, so I am not
sure why ruby should be hated for this when it is a rails dev
who does that. The blog has much more to do with rails than ruby; such API
design is really strange. I don't think this design causes problems as such, but it is
too verbose and way too ugly. To me it seems that they are
just shuffling data structures around; that could even be
solved via yaml files. |
|
Of course you can try to convince them otherwise, or just be an asshole and mass-refactor to remove the DSLs.
But this kind of code is part of Ruby’s culture now.
The simple answer for anyone that doesn’t like this style is to leave Rails and Ruby for people who enjoy it.
It’s fine to hate it and want to distance yourself from it.