DATES. That's another one that I forgot — and such an easy one to contrast with JS:
It's interesting that you mention this syntax as baffling for you:
unless this do that or return this if that
For me this is the specific feature that felt like I'm playing with lego. When I later learned JS, I've developed a strong preference for refactoring if/else statements this way as well and literally everyone compliments me on this :D I wish all JS devs were trained in Ruby first so they'd write less of a spaghetti code.
DATES. That's another one that I forgot — and such an easy one to contrast with JS:
It's interesting that you mention this syntax as baffling for you:
For me this is the specific feature that felt like I'm playing with lego. When I later learned JS, I've developed a strong preference for refactoring if/else statements this way as well and literally everyone compliments me on this :D I wish all JS devs were trained in Ruby first so they'd write less of a spaghetti code.
It took me a while to grasp it but once I understood it I really loved it. Thanks for the article it looks interesting.