Tuesday May 3rd

Monday May 2nd

How to design a Fluent Interface

How to design Fluent Interfaces and why it's important to know about this pattern.


Here's a small example I wrote up of using the Fluent Interface pattern in a class that generates Sql query statements: http://pietschsoft.com/Blog/Post.aspx?PostID=1403

WOW, that example code (Order.AddFreeShipping().IncludeItem(10).SetQuantity(2);) at the top of this article looks a lot like the Fluent Interface (order.AddFreeShipping().IncludeItem(15).SuppressTax();) in my article "How to build a Fluent Interface in C#" @ http://www.dotnetkicks.com/csharp/How_to_build_a_Fluent_Interface_in_C.

And the author didn't even give me an acknowledgement.

Actually make that http://www.dotnetkicks.com/csharp/How_to_build_a_Fluent_Interface_in_C (the RegEx ate the period at the end of my sentence).

"(the RegEx ate the period at the end of my sentence)"

Sounds like a great excuse to join the DNK project team and add a unit test for this ;)

Here is the test as it is : http://dotnetkicks.googlecode.com/svn/trunk/DotNetKicks/Incremental.Kick.Tests/HelperTests/TextHelperTests.cs

Well, actually, I didn't necessarily think of it as a bug, because I'm not even sure that the URL RFC disallows a period at the end.

I've considered helping out with the DNK project, but as quick as you (and the others) are at new feature releases, I'm not sure I'm as experienced or dedicated. :-)

BTW, MbUnit's RowTest rocks!

I don't think I've ever seen a URL end with a '.'.

Regardless of what the RFC potentially says, I think that we should not allow a '.' at the end of a URL.

Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network