News for hackers. Stuff that matters.
Re:Really Slow Site for Testing HTTP Caches. by jrockway on Saturday October 23, 2010 @08:56PM (#1824830)
This site is slow :)

I don't know Ruby, but how does this work:

    get '/', :agent => /curl/ do
      (slow_thing, time) = slow_down(DEFAULT_SLEEP)
      "SLOWER THAN #{slow_ting}. Putting the brakes on for #{time} seconds.\n"
    end
It binds slow_thing and then references it as slow_ting (without the h) in the interpolation? What?

It appears twice so it must be intentional?

Re:Really Slow Site for Testing HTTP Caches. by shmeedogg on Saturday October 23, 2010 @09:05PM (#1824851)
Oops, that's a typo in code that hasn't been deployed yet. Our regression suite missed it ;-)
Re:Really Slow Site for Testing HTTP Caches. by jrockway on Saturday October 23, 2010 @09:42PM (#1824922)
Ah, makes sense, you just get the empty string instead of "turtles marching through peanut butter".

I am used to Perl where your code won't compile if you reference an undefined variable in a string interpolation.