Sunday, 25 February 2018

Best Ruby books

These are some of the best ruby books in my opinion, that can help you go to the next level. They are easy to read and every ruby developer should read them at least once.

1. The Well-Grounded Rubyist

If you are you new to ruby, you will need to know how ruby works, and how it's structured. This book will give you a solid understanding about ruby and its unique design.

2. Practical Object-Oriented Design in Ruby: An Agile Primer (Addison-Wesley Professional Ruby)

This book will get you to the next level in Object Oriented Programming in general, no matter the language. But it's written with ruby examples which you can easily use in your day-to-day life as a developer. It includes OOP design principles in compact, well structured ways.

3. Refactoring: Ruby Edition: Ruby Edition (Addison-Wesley Professional Ruby)

Clean code matters, a good developer knows how to refactor code correctly. This book is a rewrite of the original book Refactoring(Java) but with ruby examples.

4. Design Patterns in Ruby (Addison-Wesley Professional Ruby)

Like OOP, design patterns in software engineering will help you with any programming language. This is written in ruby of course and it will help you identify and use common design patterns in your code.

These are the books I've chosen, that can get you to the next level in ruby. There are many others, but these are the ones that are easy to read and can transform you into a better software engineering in general.
You will need to read them more than once or visit specific chapters when you need to remember something in particular.

Don't forget that a good ruby developer knows how to write good tests. Do you know any good TDD books? Personally I've used the official RSpec guides. Comment below if a book has helped you write better ruby tests.

Tuesday, 7 February 2017

Install RedHat 7 on VMware Workstation 11

Here is how to install a Linux Red Hat 7 on VMware workstation 11.
To help you get you started for your RHSCA training or any other projects you might be working on.

First of all you will need to download the RHEL iso file from RedHat's official website.
You can register with a 30 day trial account, which you can also use it to subscribe your server after the installation.

Let's get started:
Create a new VM: File > New Virtual Machine...:

Typical Installation > Next

Select Installer disc image file (iso) and > Browse the path of your rhel.iso that you downloaded > Next

Type a host-name and a username > Next

Type the VMs name > Next

Allocate as much disk space as you like > Next

Click on Customize Hardware

Go to Processors and on the right enable the Virtualize Intel VT-x... > Close.
This option is crucial if you want to use KVM Virtualization within your VM.

On Close the VMware Easy Install will start, which will take care of everything.
After the installation is completed your VM will be rebooted asking you for username and password.

There is one last step worth mentioning which might help some of you.
By default with the Easy Install method the network interface of your newly created VM doesn't start automatically.

You will need to enable it manually.
In the terminal type:
vim /etc/sysconfig/network-scripts/ifcfg-enoXXXXXXX (Type your network after ifcfg-...)
and change the value from no to yes: