News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Arnold Daniels' Blog:
PHP != Ruby (and why PHP needs more advanced OO stuff)
August 10, 2007 @ 10:22:00

In response to this post on the ActsAsFlinn blog's comments on ActiveRecord in PHP, Arnold Daniels has some comments of his own on the subject - specifically about the need for more work on the object oriented side of things in PHP natively.

Today I read an article about how Active Record is implemented in Ruby. In this article he lays down how things are done in Ruby and how that is not possible on PHP. Though I agree with him on a large part, there are a few site notes to make here.

Arnold talks about a solution to an issue mentioned in the ActsAsFlinn blog - the addition of methods to a preexisting class - via the runkit extension. He gives a PHP translation of the Ruby code from the other post and includes a few proof of concepts to show it in action. You can download the code if you'd like to try it out yourself.

0 comments voice your opinion now!
ruby oop advanced runkit method activerecord ruby oop advanced runkit method activerecord


blog comments powered by Disqus

Similar Posts

Knut Urdalen's Blog: Tic Tac Toe with PHP-GTK2

RubySource.com: Confessions of a Converted PHP Developer: Namespace Superhero!

Wojciech Sznapka's Blog: Always use most latest versions for benchmarks

Giorgio Sironi's Blog: Advanced Zend_Form usage

Sameer Borate's Blog: Refactoring 3: Replace Temp with Query


Community Events





Don't see your event here?
Let us know!


code framework introduction laravel community developer podcast symfony2 unittest language refactor threedevsandamaybe install series testing list api release interview opinion

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework