AfterThought - Visual Studio 2008 Color Themes

I've seen some great color themes for Visual Studio out there, but none of them appealed to me all that much, so I designed my own themes. I call them AfterThought Dark and AfterThought Light. The goal was to achieve something that was easy on the eyes. Something that provided a good degree of contrast and readability without being too saturated. Eventually, I will also have Emacs color themes made from these. Anyway, I included below a couple of screenshots and you can download them at the Github.

VS2008 AfterThought Dark Theme
Figure 1 - AfterThought Dark


VS2008 AfterThought Light Theme
Figure 2 - AfterThought Light

New Tumblelog

I started a new tumblelog at http://standardout.tumblr.com/ for short tidbits of information that I need to keep track of. My thinking, which is not yet concrete, is that I need a blog for longer pieces (this one) and another just for notes... Still thinking about the logistics and may shuffle the domains around a bit for optimum output.

A Great Use For Lambdas in C#

If you are writing a console application in C# that has to write a lot of output from different places in your code, then that's is one situation that illustrates a great use for lambda expression.

Consider the following code:

static Action<object> WL = obj => Console.WriteLine(obj);


What's happening in the above line of code is that you declared a System.Action<T> delegate that expects a T, or an object in our case, as a parameters and returns a void. You then assigned a lambda expression to that delegate in the format of obj => Console.WriteLine(obj). Now, every time you need to write out some text to the console, all you have to do is call WL("some text"), and that saves you from writing Console.WriteLine("some text") all the time.

If you have other examples of the uses for lambdas or find anything wrong with this post, I would love to hear it.