Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jashkenas
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
213 ms
·
1831.
▲
by
jashkenas
17y ago
Thanks for the suggestion, Simon -- It's done. The Underscore page now has the download for version 0.1.1, with a noConflict function that returns the "_" variable to its previous value. var myUnderscore = _.noConflict();
1832.
▲
by
jashkenas
17y ago
Yep -- that one is questionable. It's there to provide symmetry with "_.last", which is definitely more convenient than: array[array.length - 1];
1833.
▲
by
jashkenas
17y ago
Underscore isn't tied to jQuery either. It just complements it nicely. Oliver Steele's Functional is a great library too, and bits of Underscore were inspired by it. The main difference between the parts they have in common is that Function
1834.
▲
by
jashkenas
17y ago
Quick Summary: Underscore provides all the functional programming goodies that you would expect with Prototype.js or Ruby, but without extending any core javascript objects, so it can fit hand-in-hand with jQuery. In Javascript 1.6 complian
1835.
▲
Underscore.js: Functional Programming for jQuery
(documentcloud.github.com)
117 points
by
jashkenas
17y ago
|
35 comments
1836.
▲
by
jashkenas
17y ago
Here it is in Ruby. LISP_METH = /^c[ad]+r$/ def method_missing(name, *args) meth = name.to_s raise NoMethodError, "undefined method '#{name}'" unless meth =~ LISP_METH list = args.first calls = meth.split('')[1..-2
1837.
▲
by
jashkenas
17y ago
Yes, you're quite right -- sorry for the omission. The worker daemons (via the Daemons gem) use Kernel.fork and UNIX signals for management, neither of which are really supported on Windows. There's a decent chance that Cygwin will work.
1838.
▲
by
jashkenas
17y ago
Clickable Link: http://wiki.github.com/documentcloud/cloud-crowd Blog Announcement: http://www.documentcloud.org/blog/2009/09/14/cloudcrowd-para...
1839.
▲
MapReduce-inspired: A Parallel Processing System for the Rest of Us (Ruby)
18 points
by
jashkenas
17y ago
|
5 comments
1840.
▲
by
jashkenas
19y ago
Works on Mac, Windows and Linux. Using interactive Ruby (via-jirb), you can do Live Coding, redefining your methods and classes as you go.
1841.
▲
Processing has been the Canvas of Choice for Artistic Programming: Introducing Ruby-Processing.
(the-shoebox.org)
10 points
by
jashkenas
19y ago
|
3 comments
1842.
▲
Shoes, a Ruby GUI toolkit, now has some sweet apps.
(the-shoebox.org)
9 points
by
jashkenas
19y ago
|
1 comments