Ruby's Java Approach

There are many resources available to the Java developer to start the transition in Ruby / Rails. The converse is not true.

What resources do you offer to keep the current state of Java technology current? How about learning how to approach DRY (don't repeat yourself) without using metaprogramming? Or how to approach various scenarios in which the ruby โ€‹โ€‹developer is used to pass a function (proc / lambda / block) as an argument (callbacks, etc.)?

+4
source share
2 answers

You can start by exploring Groovy and Grails , which may seem more familiar to you. You can then start exploring most of the Groovy Java section to see what Java can do. In the end (if you need to) you can upgrade to 100% Java.

Groovy is a lot like Ruby (at least from my Ruby-novice view), but you also have full access to Java libraries and coding.

I think you could take a look at JRuby first , not Groovy, as this is a Ruby implementation in Java.

It is best to think about what you would like to do with Java and try to delve into this area. Over the past few years, Java has generally become quite cumbersome.

Good luck and I hope this helps a bit.

+5
source

I would not start with the "current state" of Java. As @chstehno said, Java is huge and a bit of a mess. Focus on learning the basics, and then delve into the libraries as they become relevant to what you are working on.

I switched from Java (and a bunch of other old school languages) to Ruby, so I canโ€™t talk about it differently, except to say that Java is much more โ€œfrom the bookโ€, and you can figure a lot just by reading and looking at the code while it can be tough in Ruby with all the mixins, lambdas and conventional magic in frames like Rails.

+2
source

Source: https://habr.com/ru/post/1309336/


All Articles