This might be my worst question yet, but I am in the process of choosing Ruby vs. Jruby for a project that is in technology-research phase so syntax being the same is a minor concern for flexibility.
Are they two different syntaxes or do both look pretty much the same?
Short answer: They use the same syntax. There are slight differences in the objects and methods available, but the syntax is the same.
Longer answer: Ruby 1.9 uses a slightly different syntax than Ruby 1.8. JRuby originally lagged behind in 1.9 support, but is slowly catching up. If you are talking about Ruby 1.8 vs. JRuby, it’s the same. If you’re talking Ruby 1.9 vs. JRuby, then it is the same as long as you are using JRuby 1.6.0RC2 or later.