Flinn Mueller on 19 Sep 2007 03:55:53 -0000


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

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

  • From: "Flinn Mueller" <theflinnster@gmail.com>
  • To: talk@phillyonrails.org
  • Subject: Re: [PhillyOnRails] Ruby-Presenters and Non-ruby presenters?
  • Date: Tue, 18 Sep 2007 23:55:40 -0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=FrKsecpNhwUd3OhDbOgM9S0+s+c4DyHcbDhj4rVEqPI=; b=WRzlJGKHu7CFE335P4gfXo25yBghjFI+zWcDElPrTBZfyfgbzPR8LZ///M56CQJvrWtTNiFIP1ULcUZ1cR9mGM6eEpko3KumjzxScU8pryZzUjodjxGLcNZiBlbiKs5jkN2VdTs/2EAVHsCiZXjj4ZqAX/KVXfLIDJuThMk625s=
  • List-archive: <http://lists.phillyonrails.org/pipermail/talk>
  • Reply-to: talk@phillyonrails.org
  • Sender: talk-bounces@phillyonrails.org

I find that PHP users don't understand Rails because much of it depends on understanding the Active Record design pattern, ORM and object persistence.  Some of you know I recently took a position as a PHP developer ( I hate even saying that).  As a Rubyist for the last 2 years I've been running into some issues trying to apply Railsish concepts (aka best practices) in a PHP environment.

I find that since PHP isn't purely object oriented there is a tendency to use classes just to group like-functions.  Also rather than passing around objects there's a tendency to pass primitives using classes only to scope methods to a particular domain...

$bar = Frob::nicate($foo);

or worse yet

$frob = Frob($db_object);
$bar = $frob->nicate($foo);

So the question I find myself consistently running into is, if you are using PHP and you find the value in using ActiveRecord why try to break your back forcing PHP to do something it can't?  Just use Ruby.  If you don't see any value in the pattern or how it's implemented in Ruby, then go on using PHP, see you again soon ;-)




On 9/18/07, Mat Schaffer <schapht@gmail.com> wrote:
Also, I got a note from the PHP Meetup group awhile back asking about
cross-presenting.  Anyone interested in a PHP framework (Symfony,
CodeIgniter, Zend Framework) presentation as one of the october
presentations?

 

_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk