Inside Paulo Abrantes' head
[ start | index | login or register ]
start > comment-start > 2007-11-14 > 1-1

1-1 commented start/2007-11-14/1

Created by m4ktub. Last edited by m4ktub, 326 days ago. Viewed 406 times. #2
[diff] [history] [edit] [rdf]
labels
attachments
Fluent Interfaces seem to be a good way to improve software design...

I agree with you but I need to make a comment on that. I don't think it's a direct consequence of using fluent interfaces, that is, that by implementing fluent interfaces your software component will be automatically well designed. For example, you give two approaches to adapt an existing interface to a fluent style. This adaptation makes no effort in improving the design of the underlying component, off course.

This relates to the necessity, or advantage, of adapting an existing interface to a fluent style. I believe that the API that a component offers is related to the way it was thought and, although creating a fluent interface may help you use the component, it does not change it's inner workings, that is it's design.

In conclusion, when you check a component that was built with fluent interfaces in mind you can see traces of that line of thought in every part of the component. IMO, that happens because fluent interfaces try to solve some problems like expressiveness, for example, that is not limited to the way you can use an interface.

You gave JMock as an example. Check Wicket source code as another example.

2 comments (by m4ktub, pabrantes) | post comment
Who am I?
paulo-roca2My name is Paulo Abrantes AKA pabrantes and I'm a software developer. I'm currently employed at >>CIIST working as a Java developer in >>FenixEDU.

This blog is mostly about Java programming, domain driven design and snipsnap bliki developing. Everything written in this blog is my personal opinion and it may not reflect the opinions of my employer and co-workers.


Blog subscription
subscribe by rss subscribe by email

Links
>> Home
>> Paulo's Profile
>> Post History
>> Add to Technorati Favorites
>> Paulo's Photo Gallery
>> WishList
>> Posting without Login

Search Blog
Fellow Bloggers

Recent Posts

Java Programming: Bytecode Injection
Intermission: Sorry For Downtime
Software Developing: Studying The Bliki Domain Model
SnipSnap Developing: Trying to settle a roadmap
System Administration: Load Balancing with Apache
Blogging: Two years have passed
Software Developing: The SnipSnap Saga
Java Programming: Getting your code spicy with Groovy
Software Developing: Fluent Interfaces
Software Developing: Implementing a ShoutBox on SnipsSnip
Software Developing: SnipSnap, SnipIt and SnipSnip
Java Programming: Proxies and Access Control
Java Programming: Proxies and References
Java Programming: References' Package
YALM: Yet Another Layout Modification

For older posts, please refer to post-history for a complete Post History

Logged in Users: (0)
… and 6 Guests.
This is a modified version of snipsnap.org created by >>Paulo Abrantes