I am a professional java, now I like to go on ruby. Are there any similarities in both languages? and what are the main differences? Because both objects are object oriented.
How about these:
Similarities
As in Java, in Ruby, ...
Differences
Unlike Java, in Ruby, ...
: Ruby From Java
-, . Java - , ruby - . . Java c- , ruby .
Java , Ruby .
, , .
. , , , ; ?
, , . , .
, , , . () , , , , , . . , .
Java Ruby. , , , .
, . , , " Ruby" Java. , . , , . , , , . , , . ( , "", , , "" .)
Ruby. . , .
Ruby . , , Ruby:
animal = Animal.new
Ruby - , . - , Ruby .
Therefore, I can say that in Java and Ruby there is not too much in common. Until today, I cannot find any similarities between them, since Ruby has gone its own way, unlike many other languages that come from C.