Fluent Interface: Has wikipedia missed the mark on this one?




I was just reading Martin Fowlers article on Fluent Interfaces.

I then decided to check out Wikipedia's page on it - it seems to me that the example of fluent interface there is just a classic case of method chaining.  The impression I got from Fowler was that the "fluency" comes more from the language used (the method names), rather than just method chaining itself.

Fowler explains:

"I've also noticed a common misconception - many people seem to equate fluent interfaces with Method Chaining. Certainly chaining is a common technique to use with fluent interfaces, but true fluency is much more than that."

Have I completely lost the plot here or has wikipedia had a brain fade and given a really poor example on this one?



 del.icio.us  Stumbleupon  Technorati  Digg 

 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this entry.
Comments

  • 11 June 2010, 3:33 PM IP PBX wrote:
    The many people seem to equate the fluent interfaces with chaining method. These methods achieving a sequence of modifier calls where each call returns the host object for further modification. The fluency comes more from the language used rather than the method chaining. It is certain that the method chaining is used with fluent interfaces. But for true fluency there are a lot more to do. Method chaining is the artificial method used for fluency.
    Reply to this
  • 24 June 2010, 4:40 PM go casino wrote:
    I've just read that article and decided to repeat your experiment on the random Wiki page and noticed the same poor result.So I don't even know what to say here.Maybe we are both mistaking.
    Reply to this
Leave a comment

 Enter the above security code (required)

 Name

 Email (will not be published)

 Website

Your comment is 0 characters limited to 3000 characters.