Monthly Archives: November 2013

Ruby ==, hash VS Java equals, hashCode

We should take a look what equals() & hashCode() of Java did for us. We create a simple Java class first. public class Demo { private int i; public Demo(int i) { this.i = i; } } Let test it … Continue reading

Posted in java, ruby | Leave a comment

Iterator Pattern

In my opnion, Iterator Pattern is probably one of the most powerful design patterns in the word of programming. Why we need the Iterator Pattern? 1. It generalizes and simplifies the way of accessing elements. 2. We can represent a … Continue reading

Posted in design pattern, java | Leave a comment

rubycollect4j – Ruby Collections for Java

As a Ruby programmer, I am fascinating by the friendly APIs which Ruby¬†array & hash provide. As a Java programmer, I am confident with the power and reliability it brings. I tried JRuby and developed few Rails applications. Frankly speaking, … Continue reading

Posted in java, ruby | Tagged , , , | Leave a comment