Context is King
No pain, no gain.
-
dynamic, Why not?
In these days, people begin to expertise some new features in .NET 4.0. And I am same to them as well. One of features I like and write to this post is dynamic keyword. It is not new, at least in PHP, Python, Ruby... But in .NET world, I think it is new and ship to .NET 4.0 as a default. And some of projects are ported to .NET based on DLR as IronPython, IronRuby. We can use dynamic keyword in anywhere in our project. How do you think about it? So dynamite, isn’t it? :D. Some of people are didn’t like it, some else are love it. How about you? With me, I only try to utilize a new feature in .NET 4.0 for make my work is easier.
-
Fluent Interface for WebRequest class
All source codes can be found as http://fluentwebrequest.codeplex.com..
-
Clean and clear configuration with StructureMap
All sources of this post can be found at my git.
-
AOP with StructureMap Container
Source code for this post can be found in my git.
-
A first look at ConfORM - Part 2
-
A first look at ConfORM - Part 1
All source codes for this post can be found at here.
Have you ever heard of ConfORM is not? I have read it three months ago when I wrote an post about NHibernate and Autofac. At that time, this project really has just started and still in beta version, so I still do not really care much. But recently when reading a book by Jason Dentler NHibernate 3.0 Cookbook, I started to pay attention to it. Author have mentioned quite a lot of OSS in his book. And now again I have reviewed ConfORM once again. I have been involved in ConfORM development group on google and read some articles about it. Fabio Maulo spent a lot of work for the OSS, and I hope it will adapt a great way for NHibernate (because he contributed to NHibernate that). -
Generating Report for NUnit
All source codes for this post can be found at my github.
Time ago, I received a request that people ask me how they can generate reports of the results of testing using NUnit? In fact, I may never do this. In the little world of my programming, I only care about the test results, red-green-refactoring, and that was it. When I got that question quite a bit unexpected, I knew that I could use NCover to generate reports, but reports of NCover too simple, it did not give us more details on the number of test cases, test methods, ... -
DRY with Lambda Expression (errors management)
In my current project, I have made a miracle with Lambda Expression. Have you ever implemented something like this:
-
DateTime formatting extension method
Notes: I also updated the pieces of code at http://www.extensionmethod.net/Details.aspx?ID=393
-
NHibernate 3 and Autofac, can go together? (part 2)
In part 1, I introduced about NHibernate and domain model for News Management System. And today, I will continue to show you about Autofac and how to make Autofac can understand all core instances of NHIbernate. If you do not read part 1, please read it at here. The time went very quickly, so we will start jumping into Autofac now.