Wednesday, August 20, 2008
 
   
 
Welcome to my site

First let me say thanks for stopping by my site. My name is David Hanson-Graville and I am a IT consultant working in the UK. Let me make it clear, I am passionate about technology and specifically .net and its various forms. I've programmed in a range of langages, but I can say, I am now at my happiest when coding with c#. I hope my blog is an enjoyable & educational read and please feel free to email me at David.Hanson@OnTheBlog.net if you have any questions. 

Search Minimize
Print  
Archive Minimize
Print  
Dipstick Survey Minimize
What technology are you most excited about?











Submit Survey  View Results
Print  
Contact me Minimize
Print  
Silverlight News Minimize
silverlight - Google News
Print  
Fluent Language Interfaces & DSL's Minimize
Location: BlogsOnTheBlog    
Posted by: David Hanson Thu, 07 Aug 2008 22:36:04 GMT

I was having think about fluent language interfaces and got me thinking about a DSL for search. Take this example

Web.Search
       .Contains("David").And.Contains("Hanson")
       .Or.contains("Michael Smith")
       .Exclude("Sex")
       .Exclude("man, Word, Slipper")

       .WithinDomain("www.ontheBlog.Net")
       .OutPutFormat(Format.XML)
       .Provider(Provider.Google | Provider.LiveSearch)
       .FilterLevel(Filter.None)
       .MaxResult(100)
       .Language(Language.English)
       .Execute();

I may have to take this further.

Permalink |  Trackback

Your name:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel