News for hackers. Stuff that matters.
Re:What Pythonistas Think of Ruby by 0x44 on Wednesday February 03, 2010 @07:07PM (#1099324)
The prototypical ruby case would be:

  def some_method(x, &block)
    yield x
  end

  then to call it:

  some_method "hey" { |v| print v }
That might not look like much, but it allows you to create methods that can extend the language expressively and then use them without extra crufty syntax or sigils obstructing their meaning.
Re:What Pythonistas Think of Ruby by mclin on Wednesday February 03, 2010 @08:39PM (#1099512)
> some_method "hey" { |v| print v }

I'm sure ruby is great once you're initiated, but despite >10 years of programming and having learned basic, c, pascal, lisp, java, c++, python, perl, bash, php and javascript, I have no idea what code does.

Don't mean to harsh, just an observation.

Re:What Pythonistas Think of Ruby by 0x44 on Thursday February 04, 2010 @11:47AM (#1100889)
I made that method absurdly generic, how about:

  get "/hi" do |url|
    print url
  end

?