News Feed
Sections




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

PHPMaster.com:
Introduction to the Law of Demeter
October 26, 2012 @ 12:13:35

On PHPMaster.com today they've posted an introduction to the Law of Demeter, an idea that promotes loose coupling between objects that each do their own work. This makes it simpler to make pieces interchangeable and more able to focus on their job.

With so many heuristics stating how and why software systems should cling to a specific approach, it's pretty disappointing not seeing a broader implementation of them in the world of PHP. For example, the Law of Demeter is probably one of the most underrated in the language's realm. Effectively, the law's "talk to your closest friends" mantra still seems to be in a pretty immature state in PHP, something that contributes to rot in the overall quality of several object-oriented code bases.

They look at how keeping the functionality of each object focused and not "knowing too much" is a good thing and include some examples of working with a service locator, serializer and file storage classes.

0 comments voice your opinion now!
lawofdepeter introduction object loose coupling


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Generate QR Codes in PHP

Imagine Easy: Pushing the limits of metaprogramming in PHP: aspect oriented design

DeveloperDrive.com: What Web Developers Need to Know About Cross-Site Scripting

Oracle Technology Network: Using PHP and Oracle Database 11g (Tutorials)

Kevin Schroeder's Blog: ZendCon 2010 Podcast - Introducing Zend Framework 2.0


Community Events

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


extension conference podcast community voicesoftheelephpant api opinion introduction release version library laravel php7 interview example framework series xdebug symfony2 performance

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