Ruby: Complexity cannot be reduced

There is a lot of discussion about concise code. Comparing Java to Ruby, obviously Ruby has more concise code (This article contains code examples, which could be written better and which experienced Java and Ruby developers would write in differently. But the examples were chosen to illustrate points). Compare this Ruby code taken from the […]

Read More »

ELSE IF are nested IFs

I’ve been adding more metrics to Meaxure, lately the DCOND metric. DCOND is the deepness of condition nesting, currently only implemented for IFs, but not for switch or the ternary operator. Deeply nested IF statements are most often a source for bugs because of their complexity. When I’ve run the first test, DCOND was very […]

Read More »