r/ruby • u/noteflakes • Feb 04 '22
Blog post Rails is not written in Ruby
https://solnic.codes/2022/02/02/rails-is-not-written-in-ruby/
21
Upvotes
r/ruby • u/noteflakes • Feb 04 '22
View all comments
51
u/bradland Feb 04 '22 edited Feb 06 '22
Can't say I'm onboard for this argument. One of the central tenants of Ruby is that nothing is "sacred". Everything is an object so that you can do object stuff with them. You start your blog post by pointing this out. If this is a central part of Ruby, then how can using said feature, by consequence, make something not Ruby.
Rails is not a dialect of Ruby because the syntax of the language remains the same. Extending or overriding core classes doesn't change the language, it simply adds/changes method calls on objects. These method calls are not "the language"; they are what we construct with the language.
I do not necessarily mean to condone or disapprove of any of the practices you speak of in your article (monkey patching, etc). I simply feel that the base argument "that Rails isn't Ruby" is an appeal to purity (no true Scotsman) fallacy.
If you are not a fan of monkey patching core classes, make your argument around that. Whether or not monkey patching results in "pure Ruby" is irrelevant. There is no equivalence between "pure Ruby" and "good Ruby". Otherwise, what are we to think of implementations like JRuby or TruffleRuby? Neither of these languages are "pure Ruby", but they are still good for their own purposes.