Writing a calculator in C# using Irony

My friend Mark wrote a post last week about implementing a calculating compiler using SableCC. I have worked with SableCC on a project where we needed to parse C# code and I have to admit I don't recall SableCC as a friendly framework, and reading Mark's post proves my memory right. F... [More]

Copenhagen .NET User Group - Startup

A .NET User Group is starting up in Copenhagen for more information check http://cnug.dk/ (in Danish). I Hope to see many of the Danish developers on the 19th of June in Ballerup. Its gonna be a talk about expectations for the User Group and a presentation of some concepts from object relational map... [More]

Common nHibernate exceptions and a question

I often get asked question about nHibernate issues the question discussed last in this post is often brought up. But lets start out with a few simple exceptions that can sometimes take up more of your time than you would like. "NHibernate.MappingException : Unknown entity class: MyNamespace.Wi... [More]

Small challenge: call method on null

Inspired by some talk I "overheard" on twitter I thought it would be interesting to post a small challenge. Is it possible to implement the missing parts of the following code so it compiles and runs without exceptions, if yes how would you do it? You are not allowed to modify the body of ... [More]

BlogEngine.NET - DAL Architecture

So as I wrote a few days ago I have been looking at BlogEngine.NET and considered how I would have designed its lower layers. So lets kick off with the provider that's currently used in BlogEngine.NET for accessing the various storages (XML and RDBMS). The provider is responsible for accessing all d... [More]

BlogEngine.NET investigations

Last Friday I took a look at the source code from BlogEngine.NET I wrote a little log during my short look: 20:32 - Downloaded the latest source from BlogEngine.NET on codeplex 20:34 - Build the solution and starting the website after a single problem with the website expected in another place t... [More]

Fluent interfaces. Make it easy to do it right

A fluent interface is a way to make what we could call an "inline" domain specific language using the power of the tools you already have at hand. Often when speaking statically typed object-oriented languages its a way to build an object graph or manipulate the state of an object in a mor... [More]

Tray icon annoyance

I have two wonderful tools that produce icons in tray. Last.fm allows me to hear music that is exactly my taste and TeamCity tray notifier monitors failed builds on TeamCity. However I wish that the icon for a failed build wouldn't be so much like the icon Last.fm produces: Its failed build on t... [More]

Blacked out

I got a a little surprised today when I opened the Danish version of Google, they changed their look to be a.... erhm... little darker.     Apparently its Googles way of "turning off the lights" and its done as part of a campaign to make people turn of their lights today to... [More]

Handling lists of checkboxes with MonoRail

I have had some discussions with a few people about why i would use MonoRail as it (for these people) seem like a step back from WebForms. First of all its important to understand that WebForms provide a statefull abstraction over something that is in fact stateless. In my opinion this makes somethi... [More]