O'Reilly logo

Instant RubyMine Assimilation by Dave Jones

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Refactoring and maintaining your tech (Become an expert)

Once we have written our code, good developers continue to refine that code using techniques called refactoring. RubyMine has some excellent tools to help us with that task. In addition, there are database, method, and class viewers and hierarchies. These tools can also help us in locating duplicate code and variables using advanced searching techniques.

Getting ready

Open your HelloWorld project that we created earlier in RubyMine.

How to do it...

We will begin with how to refactor some code into a method:

  1. Open the helloworld.rb file from the project window on the left. We will need to fix a bug in the code first and then we will refactor some of the code into a method that we can reuse later. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required