Archive for October, 2007

The Case for Multi-line Strings in Java

Consider this:

[source:java]
private static String PROCESS =
“process ExternalCounter {\n” +
” receive(my_pl, start_op) (msg_in) {\n” +
” resp = 0\n” +
” while(resp < 10) {\n" +
" partner_pl.partner_start_op(msg_in)\n" +
" resp = receive(partner_pl, partner_reply_op)\n" +
" }\n" +
" reply resp\n" +
" }\n" +
"}";
[/source]

And now consider this:

[source:ruby]
PROCESS = < process ExternalCounter {
receive(my_pl, start_op) (msg_in) {
resp = 0
while(resp < 10) {
partner_pl.partner_start_op(msg_in)
resp = receive(partner_pl, partner_reply_op)
}
reply resp
}
}
EOS
[/source]

Which one would you rather read? Time for a new feature (multi-line strings) in Java 1.7 that’s been around forever in other languages?

5 Comments »

Matthieu Riou on October 14th 2007 in Uncategorized

I’ll Be Dancing on Your Grave

This is really, really big. First Nine Inch Nails, then Radiohead, Oasis and Jamiroquai and now Madonna! This is what I’ve been saying for ages: bands don’t make much money on albums unless they’re very big players (Radiohead, Oasis and Madonna are probably in this category though). Only the label does. What really pays for bands are concerts. And it’s a much better way to give value to your production because there’s the unique experience that goes with it.

RIAA, I’ll be dancing on your grave.

No Comments »

Matthieu Riou on October 11th 2007 in Uncategorized