5 ms·
I recently picked Ruby up again after about a year of JS and Python. I instantly fell in live again due to how simple it is to do anything with Ruby. Rails is
by jmarchello 6y ago
I recently picked Ruby up again after about a year of JS and Python. I instantly fell in live again due to how simple it is to do anything with Ruby.
Rails is a breath of fresh air after trying to maintain hand-rolled solutions. The productivity gains are incredible. With Ruby 3 coming soon it seems like the performance of the language has drastically improved. I’m excited to see ruby continue to flourish.
- sdwisely 6y agothe next release of Crystal will also be 1.0 too. https://crystal-lang.org/ https://crystal-lang.org/
- radiospiel 6y agoI remember they said that already 2 years ago. :(
- block_dagger 6y agoCrystal has no metaprogramming. Lang is far less useful than Ruby imo, doesn’t deserve equal comparison.
- 1337_d00dZ 6y agoIt has metaprogramming via macros: https://crystal-lang.org/reference/syntax_and_semantics/macros.html https://crystal-lang.org/reference/syntax_and_semantics/macr...
- block_dagger 6y agoTrue, but one of the selling points of Ruby to begin with is runtime metaprogramming. Sure, it should generally be discouraged, but when it's heavily utilized by ecosystems like Rails, it becomes a primary feature that macros do not adequately address.
- brigandish 6y agoAre you saying it's a primary feature for Rails or for Ruby? I can't think of an example where it's a primary feature for a user of Rails but I usually avoid it in favour of better tools so I might not know of them. Perhaps you know of some?
- sourdoughness 6y agoRails leans on meta programming for a lot of its magic (though less so than it used to in early versions). You don’t generally use it as a user of Rails, though.
- brigandish 6y agoThen I don't see how they're any better than macros in that situation.
- realusername 6y agoIt does have metaprogramming, only at compile time. Crystal metaprogramming is very advanced as well, you could even create methods dynamically from a JSON file if you wanted to.
- faitswulff 6y agoCrystal is a great language that has learned a lot from Ruby. I'm excited to see where it goes. I think one area where it doesn't measure up to Ruby, however, is Windows support, which they've decided to forgo for the 1.0 milestone [0]. That said, I'm excited to pick up Crystal someday. What are some good niches you've found for it? [0]: https://crystal-lang.org/2020/03/03/towards-crystal-1.0.html#what-can-wait---after-10 https://crystal-lang.org/2020/03/03/towards-crystal-1.0.html...
- pantulis 6y agoIt's hard not to fall in love with Ruby. Since 2010 I've also dabbed into Javascript, Go, Elixir, Rust --work in progress, damned lifetimes!-- but as the song goes, Ruby was my first programming love and will be my last.
- pantulis 6y agoAnd mind you, i've seen and written my good share of crap Ruby code! It's not about the quality of the code or the fit-for-purposeness of the language or platform, it's about the joy of writing code in it. Totally subjective.
- RangerScience 6y agoRuby is the only language that says, "nevermind all that other stuff - Developer Happiness." (And, "Matz Is Nice So We Are Nice") It comes through in so many tiny ways!