Kafka

Joined 17 years ago

Karma
245
Submissions
51
Member since
Sep 23
[ my public key: https://keybase.io/jonelf; my proof: https://keybase.io/jonelf/sigs/dCHC8PfORlVzdGCyjCLOwaTPix8gTGKjykrPNk8Kd_M ]
View on Hacker News

Recent submissions

Comment · 13 years ago
I'm not sure but I came to think of the HATEOAS constraint of REST.
Comment · 13 years ago
Here's a Ruby one-liner

    n=1234567;(1..n).reduce{|t,n|s=i=0;loop{i+=1;s+=rand;break if s>=1};t+i}.to_f/n
Comment · 14 years ago
Comment · 14 years ago
Tried it on a Mac mini of age but still a Core 2 Duo. It was very slow in Google Chrome. If it's moving smoothly on more modern computer I guess It's time to upgrade.

On another note, I believe that this is why native still is around.

Comment · 14 years ago
Could you please explain why it would output that?
Comment · 14 years ago
Comment · 14 years ago
Comment · 15 years ago
1.upto(100){|n|puts [["Fizz"][n%3],["Buzz"][n%5]].inject{|m,e|m=m.nil? ? e:m+=e||""}||n}
Comment · 15 years ago
NoMethodError: undefined method `first' for "":String in Ruby 1.9.3
Comment · 15 years ago
From the comment by David Luckham.
Comment · 15 years ago
"Even in 1969 the AI lab had a direct news feed from the New York Times. And on-line text chatting between users, with video support was possible"
Comment · 15 years ago
If I'm not mistaken he also mentions LINQ wich is a wonderful extensions of C# and the .NET Framework. It feels like LINQ and Clojure could be a interesting match.
Comment · 15 years ago
That was what I thought he was aiming for to but then he, out of nowhere, suddenly praised PHP. I'm 99% sure that I don't have to check out PHP again to see if it's really something about it that I've missed.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton