Get your facts right.

I just read this article: . And I’m pissed. Why? Allow me to elaborate First of all, because on the top right there is “a service from redgate”. You’d expect to get their facts right. And that’s the main issue with this article. There will always be fights among developers about which language is […]

Silverlight 4: Bug in TabControl.TabStripPlacement = Dock.Left and OnApplyTemplate

At work I ran into a bug with the Silverlight TabControl, more specifically when setting the TabStripPlacement to Dock.Left and hiding one of the TabItems in the parent’s OnApplyTemplate. The way to get to this bug is quite specific. For example, you can’t do it when you’re using a UserControl, since in that kind of […]

Dictionary<TKey, TValue> finding key: try/catch vs TryGetValue

Today I saw some code where the developer accessed a dictionary like this: void Foo(int keyToFindInDictionary) {     Dictionary<int, string> dictionary = new Dictionary<int, string>();       try     {         DoSomethingWithTheResult(dictionary[keyToFindInDictionary]);     }     catch (KeyNotFoundException)     {         // fallback     } }   private void DoSomethingWithTheResult(string s) {     // do something } As you can see he catches the exception to […]


Believe me when I say we have a difficult time ahead of us. But if we are to be prepared for it, we must first shed our fear of it. I stand here, before you now, truthfully unafraid. Why? Because I believe something you do not? No, I stand here without fear because I remember. […]