Diasparsoft Logo Let's write software that people understand.

Home | Contact

Training

JUnit support

Outsourcing

The work that Diasparsoft did for us was outstanding. We are now using the software on a daily basis and their work could well have a dramatic impact on the Reds' organization in the near future.Cincinnati Reds Baseball Club.


Publications

Tips & Tricks

Diasparsoft Toolkit

What is Diaspar?

Interesting Bits RSS

Home » Archives » January 2006 » Reason 187 that Ruby rocks!

[Previous entry: "Nothin' from nothin' leaves nothin'..."] [Next entry: "WARNING: NeoOffice/J is not perfect!"]

01/19/2006: "Reason 187 that Ruby rocks!"

How many times have you coded Math.max(a, b), or even worse:

return a > b ? a : b;

I prefer [a, b].max. Just beautiful. Ruby's version works for an array of any size. I'm sure JDK 5.0's does, too, but just JDK 1.4's?