-
Harry ‘bent as a nine bob note’ Redknapp reacts hilariously to being called a ‘wheeler dealer’
The lady doth protest too much, methinks…
-
work life balance. strike it.
-
NOT GUILTY
-
50 Tyson
-
The Palace of Automorphic Delights (2009) - Terry Rodgers
-
The Symbol#to_proc myth←link!
Symbol#to_proc performing like a dog is simply just not true anymore.
-
Yeezy’s Versace sofa. So lurid it’s dope.
-
Stabby Lambdas & Curried Functions
Starting a new project at work in Ruby 1.9, I noticed there is a new syntax for creating lambdas:
a = ->(a,b) { a**b }This is equivalent to the conventional
b = lambda { |a,b| a**b }Thus:
a[2,5] == b[2,5]
My opinion is split on the aesthetic appeal of this new syntax, sure it’s brief but it’s also erlang-y. Fortunately it does have a useful feature, i.e. the ability to give default values to block parameter. This is not possible:
lambda { |a,b=2| a**b }This is:
->(a,b=2) { a**b }Currying, i.e. partial application of functions also appear
pow = ->(a,b) { a**b }.curry => #<Proc:0x00000100b021b8 (lambda)> square = pow[2] => #<Proc:0x00000100aff2b0 (lambda)> square[2] => 4 square[4] => 16 square[16] => 256Proc#call has also been aliased as Proc#=== meaning one can use lambdas in case statements… WUUUUUTTT!
S
-
dopest shit ever… #nohyperbole
-
Ruby in Dictionary.app
Dope
-
Taking back my day.
I love the anti-procrastination feature on Hacker News. The calibre of engineering and entrepreneurial related content is excellent, so it’s all too easy to spend too much time on there.
Sidebar: Also I have removed all Twitter and Facebook clients from my computer. I check them once via the respective websites and then logout. The inherent cumbersomeness of this process keeps me from wasting too much time on bullshit.
s
-
Apple’s App Store is a “Warehouse of Shit” - David Heinemeier Hansson
-
chilling in lisbon
-
I’m going to wallpaper one of the walls in my crib with the Hubble Ultra Deep Field.
-
Adam Lisagor makes incredible video demonstrations of apps.
Thu02Sep
Mon30Aug
Fri27Aug
Wed25Aug
Sun22Aug
Sun15Aug
Sun08Aug
Sat07Aug
Fri06Aug
Thu05Aug
Wed04Aug
Mon02Aug