May 30th, 2005
Mozilla Kinda Discovers Rubyland
"ruby javascript".split(" ").map (
function (ele) {
return ele.toUpperCase();
}
)
I know, that easily looks like some Ruby code. But it’s goddamn JavaScript.
Wait, there’s more. Some day, not so far away, I must guess, we could soon be doing something like this:
["I", "love", "objects"].forEach (
function (element, index, array) {
print element;
}
)
Basically, the cool folks at Mozilla have extended the JavaScript specifications, specifically adding a buncha cool stuff to the Array object.
You sure do see where this has probably come from, don’t you? Now if only it’d behave like real Ruby blocks.
(Discovered via Slashdot.)
Posted at 10:57 am | Link
| 6 comments | Leave a comment
Funny and Fun
Fucking shit. I am off to Bombay tomorrow; back Monday morning—I wanted to fly Kingfisher, but seems like the damn thing doesn’t accept debit cards. Seems like. Anybody know for sure? Funny, but, yeah, I have to fly Deccan now.
( Fun )
Posted at 04:07 pm | Link
| 6 comments | Leave a comment



