Ruby Adequately Lispy?

I wrote a little while ago that “I have a feeling that in terms of the ‘defining new syntax structures by being able to take unevaluated code chunks’ aspect of macros, you can get a lot of mileage out of Ruby’s blocks for doing macro-like things. However, macros can do a lot more than that.”

Turns out I’m not the only one to think that Ruby’s a good way to go if you want something with a lot of Lisp groove, including some portion of the power of macros, without jumping all the way into Lisp. Great article there; well worth reading if you’re interested in that sort of thing.

Top 10 custom JavaScript functions of all time

Top 10 custom JavaScript functions of all time

If there was ever a universal common.js shared among the entire develosphere, you’d fine these ten (plus one bonus) functions. It would be the swiss army knife no developer would go into production without. They have no doubt been tested tried and true and have proven usefulness and helpfulness to all those who’ve used them. So without further ado, here are what I believe to the top ten greatest custom JavaScript functions in use today.

I’m glad I’m not the only one who was baffled by the lack of a getElementsByClass.

Interestingly inArray() adds a method to the Array prototype object, rather than creating an independent function. I think that is a way cool way to program, but for some reason I was under the impression Safari couldn’t handle it. Maybe they’ve changed that in the version of Safari I have or something, because I tested it and it works great.

Via Reddit.