Josh Adell's Blog: Command Invoker Pattern with the Open/Closed ...

Courtesy PHPDeveloper.org  Mon, 01/16/2012 - 10:04

In a response to a recent post on DZone.com about the "Open/Closed Principle" Josh Adell has posted an example of a " flexible and extendable command invocation solution" implementing this SOLID idea.

Let's overcome some of these issues [with only being able to extend the invoker class and that the invoker needs to know how to create commands], and also make the code even more extensible.

I'll use a simplified command invoker to demonstrate. ...


 

More related items

Should Google Buy HP's PC Business?
So the biggest PC maker is getting ready to dump its PC business. That's the gist of HP kills tablets, confirms PC spin-off plans, in Computerworld. more>>

Josh Adell's Blog: Path finding with Neo4j
In a follow up to his previous post on using Neo4j with PHP, Josh Adell looks in a bit more detail about how to find paths in the data via a REST interface to the database. The thing that...

Site News: Popular Posts for the Week of 06.24.2011
Popular posts from PHPDeveloper.org for the past week:9Lessons: Import GMail Contacts Google OAuth Connect with PHP Warren Tang's Blog: PHP Unit Testing & Mock Objects with SimpleTest plugin...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com