Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Freaky
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
53 ms
·
511.
▲
by
Freaky
18y ago
all_users.select(&:is_active).map(&:name).sort isn't standard Ruby; it will (currently) only work in Rails. It's standard in 1.9, and making it work in 1.8 is all of 3 lines: class Symbol def to_proc() proc {|obj, *a
512.
▲
by
Freaky
18y ago
Same here. I do find it a bit awkward, though; my cycles tend to rotate around the day, like my body thinks a day should be 26 hours or so. Can lead to missing a lot of sunlight, which isn't always very pleasant. Still, on the bright side
513.
▲
by
Freaky
18y ago
Except the Ruby version won't run away and cry if you try to do anything even slightly more complex in it. Also you can still type "lambda" if you really want to.