Earlier quoted context omitted.
As good as any time. You will loose a lot of performance when compared to v8 but the ruby paradigm is subjectively much more pleasant to work with.
Enumerable methods are almos always what make me want to ditch Javascript for Ruby.
Ruby 2.6
31–40 of 164 posts
Re: Ruby 2.6
#32Is it a good time to learn Ruby? I mostly do React and Node + Java work professionally, but I've been looking into Ruby as a fun side project language. I would appreciate any anecdotes!
Re: Ruby 2.6
#33Really like the idea of using lazy ranges instead of magic negative indices! I.e `xs[6..]` instead of `xs[6..-1]`.
Re: Ruby 2.6
#34I am always happy to unwrap my Christmas present from the Ruby team! Some questions about this release: - Are there any benchmarks for the new JIT? - Why was `(Date.today..(Date.today + 1)) === DateTime.now #=> true` false in Ruby 2.5? It seems correct that right now is between today and tomorrow. Is it because one is a Date and the other a DateTime?
It’d be like [0,1] === 0
Re: Ruby 2.6
#35I am always happy to unwrap my Christmas present from the Ruby team! Some questions about this release: - Are there any benchmarks for the new JIT? - Why was `(Date.today..(Date.today + 1)) === DateTime.now #=> true` false in Ruby 2.5? It seems correct that right now is between today and tomorrow. Is it because one is a Date and the other a DateTime?
Been a while since I’ve used any Ruby but isn’t the first expression a range where’s the second a single value? It’d be like [0,1] === 0
`===` conventionally means 'matches', or 'includes', so an aggregate on the LHS and a scalar on the RHS is typical.
It isn't defined for `Array` beyond being the default of equality - I don't know why - but it is defined for `Range`.
Re: Ruby 2.6
#36I was trying to go download the latest Ruby or even read the latest release notes, but the site seems to be down. It's still ruby-lang.org, right?
Weird. I googled "ruby 2.6 download" and links from the results worked, but simply trying to browse to "ruby-lang.org" times out.
Re: Ruby 2.6
#37Re: Ruby 2.6
#38Ruby used to be my most beloved language. I've since developed a strong appreciation for good type system. However, working with collections of any kind in Ruby is just such a joy. The methods around it are so well thought throug and make writing code a joy that in most other languages just would be tedious. On top of that the Ruby team is constantly working on making that aspect even better. I truly don't understand…
Re: Ruby 2.6
#39Re: Ruby 2.6
#40Earlier quoted context omitted.
Have you looked at crystal ( https://crystal-lang.org/ ) ? Very ruby-like, but has additional safeties and compiles to native.
It looks fun, but as I'm doing financial modelling right now, Julia may be a better fit for me, as it has very nice libraries as well.