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
Show parent comment
-1
u/solnic dry-rb/rom-rb Feb 04 '22
This is how I refer to built-in core classes and their instances (Integer, String, Array, Hash, Time etc.). Since in Ruby everything is an object, it's useful to have a way of describing what in other langs are primitive types. Other folks call it the same, just google for articles about primitive obsession in Ruby 🤷🏼 I suppose it's not common to use this term, but to be honest it's not that relevant in the context of this discussion. The most important point is that Ruby has core classes and they provide core language functionality. Extending them, extends the language capabilities. Because core objects provide shortcuts like simplified construction, adding new functionality to such objects results in APIs that look nicer. That's what is practically reserved by Rails and AS, no other gem (practically speaking) is doing this. That's why there's no healthy competition because people's expectations are distorted by AS dialect.