Recent submissions

Comment · 8 years ago
Comment · 8 years ago
Comment · 8 years ago
Ruby defines division by zero for Floats

  1.0 / 0
  => Float::INFINITY
and

  0 * Float::INFINITY
  => Float::NAN
I think infinity is a more intuitive result, but most of the time i get this as a user i would rather see 0 (bought books per month: Infinity). As a programmer i like to get an error, because i forgot to handle an edge case...
Comment · 8 years ago
Looks like the standard rails mess :/ Don't get me wrong. From time to time i am going to look at other peoples rails code to learn, how they solved common problems in grown rails apps. Most oft the time i leave rather disappointed...

I like the spec for Comment#id_code_generated ;)

Comment · 8 years ago
yes. its implemented:

  --allow-unrelated-histories

    By default, git merge command refuses to merge histories
    that do not share a common ancestor. This option can be
    used to override this safety when merging histories of
    two projects that started their lives independently. As
    that is a very rare occasion, no configuration variable
    to enable this by default exists and will not be added.
Comment · 9 years ago
Comment · 11 years ago
if you can do all the shiny web things by writing grandpa code, this might be a good thing :)
Comment · 11 years ago
Comment · 11 years ago
I agree. Every single example in this article makes perfect sense to me.
Comment · 11 years ago
the demo is readonly
Comment · 11 years ago
HTTPS Everywhere enabled? When you visit the https site, chrome refuses to load non https resources.
Comment · 11 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton