Dec 17, 2015

Fluent code in c sharp

In 2005, the object-oriented programming expert Martin Fowler published his essay on the ‘fluent interface’. He described an approach for building software with more readable code that could be more easily maintained by developers because it is easier to read, and discover how to use, than a traditional API that contains functions with a number of parameters. While the fluent interface might have been an idea ahead of its time when the technique was first published, one now sees terms employed to describe code, such as, “fluid coding”, “fluent style” and “fluent API”, which suggest its time has arrived.


In LINQ, the 'fluent' method syntax flows logically and intuitively, and allows them to be combined simply, because each method returns the appropriate type of object for the next. Can this fluent technique be extended as an API style to make it easier to develop C# team-based applications for enterprises?

Read about it here

A-Look-at-Fluent-APIs

Dec 10, 2015

Compile your asp.net mvc Razor views into a separate dll

A "step-by-step" guide on how to compile your razor views into a separate dll. Good post about how to package your MVC razor views into a shared .NET assembly that you can use in multiple projects. In the past, I often had duplicated views / helpers in each project that was using ASP.NET MVC 3 w/Razor. This was getting to be a maintenance headache, so I looked around and saw Chris Van De Steeg’s post about how to actually accomplish this.
Pre-compiling-razor-views

Precompile-mvc-views

Detect-errors-of-asp-net-mvc-views

Dec 4, 2015

Web Designing : screen-patterns

http://designingwebinterfaces.com/designing-web-interfaces-12-screen-patterns

http://blogs.msdn.com/themes/blogs/generic/postlist.aspx?WeblogApp=infopath&PageIndex=3