July 2006 Entries
Logging is one of those things where once you have it, you never really pay much attention to it. Today I decided to investigate what is new in the logging world since the last time I looked at it. I heard of NLog some time ago, but never took the time to test drive it. In the past I have always used log4net, so I decided to compare NLog to it. Here are some of the things that I really like about NLog, and it might not be possible or “easy” to do with log4net: Asynchronous Processing:...
For anyone doing Test Driven Development, mocks (stubs) are commonly used. Whether you hand roll your own mocks, or use a mock framework like Rhino Mocks, stubs are used to in order to isolate the code we want to test. Before we can isolate our code, proper separations of concerns are required; such as implementing the Model View Controller or Model View Presenter pattern for UI testing. After you practice TDD for a few months, and write countless tests, you start to see a pattern of how to make...
Like many teams, we always fine tune our process, so we can consistently be better. Steve Eichert has a great post that describes our process in detail. In addition to what Steve described, we also play a game that I feel has become part of our process. We call it “the leader game”. A person is chosen to be the “leader” for the iteration. The “leader” is in charge of tasks (not story tasks) that would normally fall through the cracks. It can be as simple as making sure time is tracked on each story...
I saw an interesting snippet of code last night on Greg's blog. What do you think the output is? Find out if you are right here. using System; class Base { public virtual void Foo(string x) { Console.WriteLine("Bas... } } class Derived : Base { public override void Foo(string x) { Console.WriteLine("Der... } public virtual void Foo(object o) { Console.WriteLine("Der... } } class Test { static void Main() { new Derived().Foo("this...