This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Simplicity is one of Java's overriding design goals.
We believe that every being is divine, is God. Every soul is a sun covered over with clouds of ignorance; the difference between soul and soul is owing to the difference in density of these layers of clouds. - Swami Vivekananda
I guess "SCRIPTY" in this case means "doesn't protect you from writing bad code". You *can* do things in Ruby that Java simply won't allow; sometimes, this is good, and sometimes not. I like the freedom I get in Ruby to do great things, while simultaneously running the risk of shooting myself in the foot. Your mileage may vary. ;-)
Joined: Jan 30, 2007
By the way, I just tried your example. I opened irb, and typed:
in just under a quarter of a second, I got this result: