News Feed
Sections




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

Dennis Hotson's Blog:
PHP Object Oriented Programming Reinvented
September 23, 2010 @ 12:43:39

Dennis Hotson has a new post to his Tumblr blog about what he calls PHP object-oriented programming reinvented - a chunk of code he's created that lets you build classes out of objects.

It's tentatively called "PHP Object Oriented Programming Reinvented". Although it turns out the acronym is kind of unfortunate. I'm still working on that... The main idea is that classes aren't really very special at all, they're just objects like everything else. They don't even have names.. you give your class a name by giving the variable it's assigned to a name.

He includes a code snippet that shows the creation of a sample class (the "class" class) and extend it with a new class of "animal"....and then extend that with a class for a "dog". You can take a look at the full code for the method here.

1 comment voice your opinion now!
object oriented programming reinvented


blog comments powered by Disqus

Similar Posts

Community News: PHP Down to 5th on TIOBE Programming Community Index

Padraic Brady's Blog: The Mockery: An Independent Mock Object and Stub Framework for PHP5

Chris Hartjes' Blog: Metatesting: Understanding Mock Objects

Ken Guest's Blog: Book review: PHP Objects, Patterns and Practice (second edition)

Nefarious Designs: Object-Oriented PHP Part 1: Definition


Community Events





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


voicesoftheelephpant community library api opinion introduction list language podcast install tips release interview package deployment series bugfix symfony laravel framework

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