Mat Schaffer on 18 Sep 2007 18:26:25 -0000

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] Ruby-Presenters and Non-ruby presenters?

  • From: Mat Schaffer <>
  • To:
  • Subject: Re: [PhillyOnRails] Ruby-Presenters and Non-ruby presenters?
  • Date: Tue, 18 Sep 2007 14:26:08 -0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=beta; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; bh=RG17E9llZFZy6OlFuAk8XxDpSHWB9VLx0cSeOs8gsH4=; b=BboJ+yDMdAjEH3T8UGBXW6W17TjxBRsPQyDeJuHuvshlqZSrigia+oMqkcT2NyxXJCfzFCTWEFVYFknlV5bZ/vlc5oXEAkujiLwAWQ4sxr7UBPkMag5GahBvy65qzruxoNczXG9URh/teDGWcxwQspZsxvzgxVb5AHJwVi0eVwU=
  • List-archive: <>
  • Reply-to:
  • Sender:

On Sep 18, 2007, at 11:59 AM, Colin A. Bartlett wrote:
Randy Schmidt wrote:
I wanted to try to emphasize things that would hit
home with PHP if anybody has ideas, I'm all ears.
RJS / other AJAX coolness

+1 on the migrations. They blew my PHP-programmer mind.

It's not a framework thing, but one item I often bring up when making the PHP/Ruby comparison is handling of static (or class) methods. PHP makes it basically impossible to implement an interface as seamless ActiveRecord. I expect this would be a hard topic to broach in a presentation, but consider it if you're hanging out after and someone tries to tell you rails could be written in PHP.



class Papa
    "I'm a " + self.to_s

class Kiddo < Papa
end  # => I'm a Kiddo


class Papa {
    public static function foo() {
        return "I'm a " . get_class();

class Kiddo extends Papa {

Kiddo::foo();  # => I'm a Papa
To unsubscribe or change your settings, visit: