Re:Some Smalltalk about Ruby Loops
by ktpsns on Thursday October 30, 2025 @08:11AM
(#45759148)
I agree on the wording difference (method vs message), but the differences still seem to be minor. When it comes to explorability/reflection, Python also has callable(). Both languages are lazy & duck typed. And Pythons for loops emphasize the generator/iterator idioms. I personally prefer Ruby syntax for looping: In JS I prefer forEach() and yet nowadays ES6 defined for-of loops as idiomatic, isn't it?
Sometimes it is not syntax but functionality and stdlib which brings you to a language. For instance, I love the metaprogramming and dynamic dispatch of Julia but I strongly dislike the syntax.
Re:Some Smalltalk about Ruby Loops
by barisozmen on Thursday October 30, 2025 @08:35AM
(#45759322)
Hey OP, please continue this series! I'm in the same ship with you. I've been a Python developer for years, but recently start learning Ruby after I discovered its elegance. Your post here well resonates with me: https://tech.stonecharioteer.com/posts/2025/ruby/
[1] https://tech.stonecharioteer.com/posts/2025/ruby-blocks/
Sometimes it is not syntax but functionality and stdlib which brings you to a language. For instance, I love the metaprogramming and dynamic dispatch of Julia but I strongly dislike the syntax.
I would probably do something like
A repost of this thread hit the front page, I'm so happy!
I wrote the next post: https://tech.stonecharioteer.com/posts/2025/ruby-symbols/