Rava helps Java programmers adapt to Ruby as quickly as possible

Source: Internet
Author: User
Switching from Java to Ruby is a significant change for programmers. Rava makes this migration process a bit more comfortable.

Quotes

I can write Java in any language.

--Anon

Installation

To install using gem:

sudo gem install Jimmeirich-rava
Usage

Require ' Rava '
Easier console I/O

The difference between puts and print in Ruby is hard to remember. Real programmers never fear a bit of extra tapping to get reliable I/O.

Under Rava, you can use:

SYSTEM.OUT.PRINTLN ("A message") System.err.println ("An Error message")
New Object

Java programmers have a hard time remembering that new is a class method of the object class. With Rava, they did not have to write:

Something.new
and can write:

New SomeThing
Hump

The Java programmer uses the Hump naming method name. The underscore for Ruby methods is too weird for them. Rava allows you to use the hump to invoke the method.

In other words, you can use Obj.somemethod instead of Obj.some_method.

Rava helps Java programmers adapt to Ruby as quickly as possible

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.