This link has been bookmarked by 48 people . It was first bookmarked on 08 Aug 2006, by Steven Van Vooren.
-
29 Jan 15
-
25 Sep 12
-
24 Feb 12
Massuda ConsultoriaIn essence we create the various objects and wire them up together. If we can't set up everything in the constructor, then we need to make temporary variables to help us complete the wiring - this is particularly the case where you're adding items into co
-
15 Nov 11
-
25 Apr 11
mario64I haven't seen a lot of fluent interfaces out there yet, so I conclude that we don't know much about their strengths and weaknesses. So any exhortations to use them can only be preliminary - however I do think they are ripe for more experimentation.
-Thi -
08 May 10
-
04 May 09
-
14 Apr 09
-
05 Apr 09
-
23 Mar 09
-
20 Mar 09
-
02 Jan 09
-
26 Nov 08
-
13 Oct 08
-
19 Aug 08
-
12 Aug 08
-
18 Jul 08
-
23 Jun 08
-
04 Jun 08
-
31 May 08
-
13 Feb 08
-
04 Jan 08
-
03 Jan 08
-
12 Sep 07
-
31 Aug 07
-
17 Aug 07
-
16 Aug 07
-
Building a fluent API like this leads to some unusual API habits. One of the most obvious ones are setters that return a value. (In the order example
withadds an order line to the order and returns the order.) The common convention in the curly brace world is that modifier methods are void, which I like because it follows the principle of CommandQuerySeparation. This convention does get in the way of a fluent interface, so I'm inclined to suspend the convention for this case.
-
-
16 Jul 07
-
10 Jul 07
-
05 Jul 07
-
04 Apr 07
-
21 Mar 07
-
20 Nov 06
-
22 Aug 06
-
19 Apr 06
-
30 Mar 06
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.