I wish Ruby would focus more on covering its weaknesses -- it sounds like 3.0 is supposed to get there, but it's been a long time already.
Strengths: I really like Ruby's "semi-functional" syntax and the API of the core types (definitely Enumerable). They provide clean & useful abstractions for building, i.e. write your workhorse/business logic without "low-abstraction cruft". (You might not even need to write a "low-abstraction" layer at all.) I think Ruby does this better than any other popular language.
Weaknesses: Performance and over-metaprogramming. There are many crazy runtime hacks in Ruby that are possible but unnecessary. I'd willingly give up all the dynamic metaprogramming for template metaprogramming because I'd get back tons more in performance and maintainability. Python got generators correct -- Ruby copies memory left and right.
The newest generation of languages (like Rust, I've heard) have adopted those strengths without exposing those weaknesses. If Ruby doesn't "step up", it's going to be left in the dust.
14
u/Kache Dec 25 '19 edited Dec 25 '19
I wish Ruby would focus more on covering its weaknesses -- it sounds like 3.0 is supposed to get there, but it's been a long time already.
Strengths: I really like Ruby's "semi-functional" syntax and the API of the core types (definitely
Enumerable). They provide clean & useful abstractions for building, i.e. write your workhorse/business logic without "low-abstraction cruft". (You might not even need to write a "low-abstraction" layer at all.) I think Ruby does this better than any other popular language.Weaknesses: Performance and over-metaprogramming. There are many crazy runtime hacks in Ruby that are possible but unnecessary. I'd willingly give up all the dynamic metaprogramming for template metaprogramming because I'd get back tons more in performance and maintainability. Python got generators correct -- Ruby copies memory left and right.
The newest generation of languages (like Rust, I've heard) have adopted those strengths without exposing those weaknesses. If Ruby doesn't "step up", it's going to be left in the dust.