Earlier quoted context omitted.
Ruby isn't perfect but it's a great utility language and can do a lot of powerful things with very little effort. Read through Eloquent Ruby The only problems I wouldn't go to Ruby for are CPU intensive ones or ones where I need parallel threads (which you already have Java for)
You can also use JRuby. Powerful and can be very easy to the user.
Ruby 2.6
41–50 of 164 posts
Re: Ruby 2.6
#42Re: Ruby 2.6
#43Re: Ruby 2.6
#44Earlier quoted context omitted.
it can be used to create malicious pull requests that are visually indistinguishable from correct ones
> it can be used to create malicious pull requests that are visually indistinguishable from correct ones If your only check on the correctness of submitted code is visual inspection, you've got a much bigger problem than Unicode confusability.
Re: Ruby 2.6
#45Earlier quoted context omitted.
How is it it a security risk to name a constant in source code?
In Ruby it can easily be used to submit malicious source code to a repository (for example the reviewers thinking that a variable is set to some value, when in fact a new variable is created).
Re: Ruby 2.6
#46Earlier quoted context omitted.
it can be used to create malicious pull requests that are visually indistinguishable from correct ones
> it can be used to create malicious pull requests that are visually indistinguishable from correct ones If your only check on the correctness of submitted code is visual inspection, you've got a much bigger problem than Unicode confusability.
Re: Ruby 2.6
#47Earlier quoted context omitted.
> it can be used to create malicious pull requests that are visually indistinguishable from correct ones If your only check on the correctness of submitted code is visual inspection, you've got a much bigger problem than Unicode confusability.
How do you check your code? Presumably, you’re not able to exercise the full range of inputs, so at some point you will have to look at the code and figure out what it is doing…
Re: Ruby 2.6
#48Is 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!
Ruby isn't perfect but it's a great utility language and can do a lot of powerful things with very little effort. Read through Eloquent Ruby The only problems I wouldn't go to Ruby for are CPU intensive ones or ones where I need parallel threads (which you already have Java for)
Truffle Ruby ?
https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
Re: Ruby 2.6
#49Re: Ruby 2.6
#50I 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?
That range of `Date`s does not include any `DateTime`s, so the inclusion check returns false.
`Range#cover?` on the other hand, just uses >= and <= to check .