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?






Comments