DotNetShoutout - Stories tagged with Fluent Interface
3
Shouts

To repeat or not to repeat yourself?

published 693 days, 13 hours, 9 minutes ago posted by slo2olsslo2ols 697 days, 5 hours, 11 minutes ago
Friday, July 01, 2011 9:04:59 PM GMT Tuesday, June 28, 2011 5:03:25 AM GMT
What do modern developers if they are forced to write repeated code? Of course, they follow DRY principle and try to write generic code that covers as much as possible cases and can easily be extended to the rest. But sometimes such a change is complex, inefficient, or simply impossible. Here template engines come into play that allow the developer to set the rules and get your service code. I propose to try to take the advantages of both these approaches. (more)
category: How To | clicked: 4 | comment | | source: osmirnov.net
tags: Repository, T4, Builder, Patterns, singleton, dry, snippets, Fluent Interface
4
Shouts

Fluent Interface for WebRequest class - Context is King

published 736 days, 5 hours, 12 minutes ago posted by thangchungthangchung 738 days, 11 hours, 35 minutes ago
Friday, May 20, 2011 5:02:03 AM GMT Tuesday, May 17, 2011 10:39:10 PM GMT
In past, I usually used WebRequest for request some data from remote host. I also used it for request JSON data from Google APIs, some RSS, ATOM data from a few hosts. Everything is good for me. I only put some codes like this: var buffer = Encoding.ASCII.GetBytes("q=Queen Elizabeth II&video=on&audio=on&text=on");             var webReq = (HttpWebRequest)WebRequest.Create("http://www.bbc.co.uk/search/news/");     ... (more)
category: Architecture | clicked: 2 | comment | | source: weblogs.asp.net
tags: .NET, Fluent Interface
6
Shouts

Technology and Friends: Chris Eargle on Fluent Interfaces

published 819 days, 11 hours, 19 minutes ago posted by KodefuGuruKodefuGuru 820 days, 14 hours, 55 minutes ago
Friday, February 25, 2011 10:54:52 PM GMT Thursday, February 24, 2011 7:19:04 PM GMT
In this interview, Chris Eargle describes using fluent interfaces to build a domain specific language and other nuances of C#. (more)
category: Screencast | clicked: 2 | 2 comments | | source: technologyandfriends.com
tags: C#, Technology and Friends, DSL, Linq, Fluent Interface
4
Shouts

Creating a Fluent Interface with C#

published 1095 days, 21 hours, 31 minutes ago posted by http://derans.myopenid.com/http://derans.myopenid.com/ 1096 days, 4 hours, 50 minutes ago
Tuesday, May 25, 2010 12:43:13 PM GMT Tuesday, May 25, 2010 5:24:22 AM GMT
So I’ve been using fluent interfaces for a while now and I’ve really grown to like them. It made me want to write one, so I did. I made a simple interface for creating an LDAP URL. It’s really basic, but I thought it was cool nonetheless. Here’s what I ended up doing… (more)
category: Web Dev | clicked: 7 | comment | | source: derans.blogspot.com
tags: Fluent, Fluent Interface
6
Shouts

A Fluent Builder in C# | Stefano Ricciardi

published 1134 days, 23 hours, 2 minutes ago posted by http://sterioma.pip.verisignlabs.com/http://sterioma.pip.verisignlabs.com/ 1136 days, 13 hours, 44 minutes ago
Friday, April 16, 2010 11:12:10 AM GMT Wednesday, April 14, 2010 8:30:16 PM GMT
A simple builder with a fluent interface to help creating objects expecting many parameters in the constructor. (more)
category: How To | clicked: 6 | comment | | source: stefanoricciardi.com
tags: C#, Builder, Patterns, Fluent Interface
5
Shouts

Sb2 Developers Blog | FluentNHibernarte.Search 0.3 Beta Released Now Support Fluent XML-Less Configuration

posted by xoroxoro 1173 days, 11 hours, 13 minutes ago
Monday, March 08, 2010 11:00:55 PM GMT
Just released FluentNHibernate.Search 0.3 Beta which now support Fluent XML-Less Configuration available on CodePlex. No need to configure NHibernate.Search in web.config or app.config, you can know configure it like FluentNHibernate do for NHibernate. 1: Configuration nhcfg = FluentSearch.Configure() 2: .DefaultAnalyzer().Standard() 3: .DirectoryProvider().FSDirectory() 4: .IndexBase("~/Index") 5: .IndexingStrategy().Event() 6: .MappingClass (more)
category: How To | clicked: 4 | comment | | source: blog.sb2.fr
tags: Lucene.NET, Fluent Mapping, NHibernate, Fluent Interface
9
Shouts

A Tale of Two Principle Violations

published 1215 days, 22 hours, 3 minutes ago posted by KodefuGuruKodefuGuru 1216 days, 5 hours, 12 minutes ago
Monday, January 25, 2010 12:11:40 PM GMT Monday, January 25, 2010 5:02:32 AM GMT
When I decided to write the With statement in Fluent.NET, I never imagined that I would encounter a common bug and school myself in principles that I happen to present on. But that is what occurred, and I want to share it so others can avoid the same mistakes I made. With is a Fluent version of Add, only it returns the object or interface it is acting upon rather than void. This allows you to chain methods together in a fluid manner. Instead of calling strings.Add(“Hello”); strings.Add(“World”);, you ca... (more)
category: Agile | clicked: 0 | comment | | source: www.kodefuguru.com
tags: Liskov, Fluent.NET, Fluent Interface
4
Shouts

Lightweight Task Scheduling Library for .NET / Silverlight

posted by http://philipp.sumi.myopenid.com/http://philipp.sumi.myopenid.com/ 1229 days, 22 hours, 58 minutes ago
Monday, January 11, 2010 11:16:26 AM GMT
A lightweight task scheduling library that allows you to easily schedule the invocation of callback methods at specified times or intervals. Supports both .NET 3.5 and Silverlight. (more)
category: Metro | clicked: 0 | comment | | source: www.hardcodet.net
tags: tasks, schedule, polling, Fluent Interface
4
Shouts

HunabKu: Map NHibernate using your API

posted by http://fabiomaulo.blogspot.com/http://fabiomaulo.blogspot.com/ 1230 days, 4 hours, 28 minutes ago
Monday, January 11, 2010 5:45:52 AM GMT
I would say you the story of this stuff but perhaps is matter for another post if you are interested in it. In this post I will show you an example how create your API to map your domain without use XML.The Domain Complex enough ? I’m going to use various types of properties, relations as many-to-one, many-to-many, one-to-one, entities and components, collections of components, collections of scalar-types, collections as set, map, bag, list, hierarchy strategy as table-per-class and table-per-class-h... (more)
category: Architecture | clicked: 1 | comment | | source: fabiomaulo.blogspot.com
tags: NHibernate, Fluent Interface
8
Shouts

Fluent.NET 1.0.0.0 Released

published 1236 days, 20 hours, 57 minutes ago posted by KodefuGuruKodefuGuru 1237 days, 12 hours, 5 minutes ago
Monday, January 04, 2010 1:17:35 PM GMT Sunday, January 03, 2010 10:08:57 PM GMT
The first release of Fluent.NET is in the wild. It’s not a lot right now, but it is useful, and it will grow as I come across .NET framework methods that should be more fluent. So perhaps I should explain what Fluent.NET is. As an English speaker (a fair assumption since you’re reading my blog), you probably read from left to right. Why then do we as C# developers read and write code from the outside in?File.WriteAllLines("new.txt", File.ReadAllLines("old.txt")); Fluent.NET adds extension methods to gi... (more)
category: Agile | clicked: 2 | comment | | source: www.kodefuguru.com
tags: .NET, C#, Open Source, Fluent Interface