Ruby, Ruby Tutorial

Ruby – How to create a Class and its Object

This post shows Ruby codes that create a simple class and objects from that class. Yes, Ruby is an old and weird programming language, but people and companies are still

Read More...

Ruby, Ruby Tutorial

How to block port using Ruby for testing purposes

This post is about using a port so that other applications will not use it in test scenarios. For instance, you have some tests that use a mock web service,

Read More...

Ruby, Ruby Tutorial

Working With Dates And Times In Ruby – Format / Compute

Without using any Ruby gems, Time is the class we can use when working with dates and times. It represents the number of seconds with fraction since the Epoch, January

Read More...

Ruby, Ruby Tutorial

Ruby vs Java – Read and Write Text Files

This post demonstrates how to read and write text files in several scenarios. It makes some short references to equivalent Java concepts and codes.

Read More...

Ruby, Ruby Tutorial

Ruby – Connect to MySQL without Rails

This post demonstrates how to connect to MySQL from Ruby, insert, select and delete table rows.

Read More...

Ruby, Ruby Tutorial

Ruby – How to Unit Test your Codes

This post demonstrates how to unit test your Ruby codes. Note that Ruby-on-Rails (RoR) is not used here.

Read More...

Ruby, Ruby Tutorial

Ruby – Basic Inheritance

This post talks about how to implement basic inheritance in Ruby using a simple example. I’ll throw in some comparisons with Java.

Read More...