News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Paul Jones' Blog:
Fluent Interfaces Require Fluent Situations
December 30, 2005 @ 06:51:41

On Paul Jones' blog today, he talks about something that's coming up more and more (and has especially been mentioned in PHp with all of the new frameworks popping up) - fluent interfaces.

My friend and coworker Mike Naberezny wrote recently of fluent interfaces (a.k.a. object chaining). The idea is that the fluent interface makes it very easy to read the resulting code in a way that flows naturally. This is cool, but I want to add a caveat to his examples.

I think, for a fluent interface to be effective, you need situations where you actually have all that information at one time so that you can chain the methods in a fluid way.

Paul continues, talking about that "something more" that might be needed to get this kind of thing working in PHP - the need to have all of the information that's going to be chained at once.

0 comments voice your opinion now!
php fluent interface fluent situation all data at once php fluent interface fluent situation all data at once



Similar Posts

Ben Ramsey\'s Blog: Add Children with SimpleXML

ThinkPHP Blog: Real life SOAP - connecting your browser to a VoIP PBX

Scott Mattocks\' Blog: PHP-GTK News #9

Atlanta PHP Users Group: June 1st Meeting @ 7pm

Alexey Zakhlestin\'s Blog: FastCGI in PHP - The way it could be.


Community Events









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


releases developer book zendframework zend conference package mysql job security framework example application PEAR code PHP5 release cakephp ajax database

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