By phpfreak
via factorypattern.com
Published: Nov 12 2009 / 22:32
![]() | |
| HTML5 Canvas | |
| Written by: Simon Sarris | |
| Featured Refcardz: Top Refcardz: | |
| 150+ Refcardz Available · Get them all | |
By phpfreak
via factorypattern.com
Published: Nov 12 2009 / 22:32
Comments
trollhorn replied ago:
Very good tip, though not that "advanced" ;-)... would be nice if you would point out that java.lang.String makes heavy use of method chaining too, as well as the Builder Pattern...
,
RawThinkTank replied ago:
"One of the problems of the Method Chaining pattern is the fact that it can not ensure the order of the invoked method."
Solution to that was really advanced, thanks.
Hardcoded replied ago:
Method chaining is a nice approach for Queries and DSL, but it's annoying when an exception occures (e.g. NullPointer). Additional it's harder to debug.
So it's not always the best solution..
Voters For This Link (24)
Voters Against This Link (7)