News Feed
Sections




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

Bradley Holt's Blog:
Immutable Value Objects in PHP
October 01, 2010 @ 11:15:40

Bradley Holt has a new post to his blog about a subject he's recently been learning about, Domain-Driven Design, and how immutable value objects could be useful in PHP.

Yesterday I tweeted: Modern object-oriented programming languages need support for immutable Value Objects. #DDD The "DDD" in that tweet stands for Domain-Driven Design. There were several interesting responses to this tweet.

Responses to his tweet included comments from Matthew Weier O'Phinney, Ralph Schindler, Nicolas Berard-Nault and Giorgio Sironi. He notes that, while all of the suggestions are good, they're only half of the issue. They make it immutable when defined but not during execution. Currently PHP lacks this functionality, but something like this could be worked in with the concept of a "final" class.

0 comments voice your opinion now!
immutable object domaindrivendesign ddd valueobject


blog comments powered by Disqus

Similar Posts

DevShed: Utilizing Private Methods with PHP 5 and Member Visibility

Doctrine Blog: Doctrine 1.0.8 and 1.1.0-RC2 Released

DZone.com: Refactoring away from spaghetti PHP

DevShed: Keeping Track of Objects when Using Destructors in PHP 5

Justin Carmony's Blog: PHP Itch to Scratch: Object Notation


Community Events





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


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

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