DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

50
kicks
published 1 year, 2 months ago, submitted by rpatterson 1 year, 2 months ago

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

Add a comment 7 comments | category: | Views: 10 | Get KickIt image code
tags: , , | tag it

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:
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
posted by crpietschmann crpietschmann 1 year, 2 months ago
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.
posted by powerrush powerrush 1 year, 2 months ago
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).
posted by powerrush powerrush 1 year, 2 months ago
"(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
posted by gavinjoyce gavinjoyce 1 year, 2 months ago
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!
posted by powerrush powerrush 1 year, 2 months ago
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.
posted by gavinjoyce gavinjoyce 1 year, 2 months ago
posted by gavinjoyce gavinjoyce 1 year, 2 months ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge