Posts
2011
Using Code Contracts for Safer Code
·1102 words·6 mins
Programming
.NET
Code Contracts
Note: This was presented to the Tampa C# Meetup on April 20th, 2011.
One of the greatest challenges in writing code is that nebulous time when the code is too complex to keep the flow all in your head, and when the debugger gets too much in the way for watching the state of your program as it runs. This is the coding twilight zone in which the quality of the code tends to drop as you add line after line of instrumentation to your code to find that spot where something goes wrong. For most of my code writing career I solved this by littering my code with lines like the following:
Managing Dependencies with NuGet
·1188 words·6 mins
Programming
.NET
NuGet
Note: This was presented to the Tampa C# Meetup on April 6th, 2011.
Most large .NET projects will use a number of libraries and frameworks. Those dependencies of your project will have their own dependencies. To make it more complex, those libraries may depend on other libraries, and in some cases – on each other.
2010
Caliburn.Micro ViewModel File Template for ReSharper
·355 words·2 mins
Programming
Learning Caliburn.Micro
.NET
Caliburn.Micro
MVVM
WPF
ReSharper
Over the last few weeks I have been writing some in-depth articles for my Learning Caliburn.Micro series. Today is a brief side-discussion where I introduce a ReSharper File Template to help with the task of generating view-models.
Bootstrapping Caliburn.Micro with Autofac
·1358 words·7 mins
Programming
Learning Caliburn.Micro
.NET
Caliburn.Micro
MVVM
WPF
Autofac
It has been about two weeks since my last post in my Learning Caliburn.Micro series, so it far past the time for this post.
Prepare the Project # This post is going to focus on using the Autofac IoC with Caliburn.Micro. From the point of view of the framework it fulfills the same task as the MEF bootstrapper I discussed in Caliburn.Micro the MEFtacluar, or Rob discussed in Caliburn.Micro Soup to Nuts Pt. 2 – Customizing The Bootstrapper. The difference is that it uses Autofac instead of MEF.
How To Do Logging with Caliburn.Micro
·1187 words·6 mins
Programming
Learning Caliburn.Micro
.NET
Caliburn.Micro
MVVM
WPF
Log4net
NLog
Caliburn.Micro Logging Abstraction # This post covers logging. Caliburn.Micro has a simple logging abstraction that consists of an ILog interface, and a LogManager class (see below).