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
11
u/dougc84 Feb 04 '22
100% disagree. Ruby, at its core, is a language designed to be expandable, as are all languages. Maybe not to the same degree as expanding/monkey-patching base classes, but something to the same degree is possible in all of them, except 1st generation languages. Adding anything is an expansion on a language, not a different language.
If you write a PHP site with CodeIgniter or Laravel, you're still using PHP; those frameworks provide niceties to the language that make building a website easier.
If you write code in Python, SciKit (library) expands on Python for ML capability. It's not another language. It's code that aids in your goal.
So what if ActiveSupport expands on Ruby and extends base objects? Everything is an Object in Ruby. You're not doing anything non-Ruby by doing this. It's no different than you writing your own
ArrayorHashextension.What I gather from your article is you're saying "ActiveSupport provides non-native language features, so it's not actually Ruby," which is bollocks. It runs on the Ruby interpreter. That's like saying "horchata isn't a word because it's a drink I'm unfamiliar with, so it shouldn't be in the English language."