My box can has shinies!

23 Nov, 2009 - 1 minutes
Found on a forum: I think of my inner world like a child holding a box of their most precious treasures and when they show it to someone the person laughs and teases that that they aren’t treasures, they are worthless knickknacks and stones. What hurts isn’t being told that they are worthless, what hurts is that something so wonderful could not be shared. What doesn’t do any good is locking the box up and showing no one ever again.

Reverse a dictionary

23 Jun, 2008 - 1 minutes
Have you ever wished your dictionary of <K,V> was in fact of <V,K>? I might be the last person to figure this out, but with LINQ (and a couple lambdas) you can do this with one magical line of code: var newDict = oldDict.ToDictionary(l => l.Value, l => l.Key); Neat, eh?

I hate Subversion

22 Jun, 2008 - 1 minutes
I really really hate it. Every time I try to do anything USEFUL with it, like try out an idea in a new branch and then merge the bits of that branch that worked out back to my main line, it barfs all over me with totally crap-ass error messages that nobody could ever, EVER understand. Also, despite their claims to the contrary in the documentation, svn will happily shit all over your working copy when a switch fails.

Become a Jedi with Resharper

20 Jun, 2008 - 1 minutes
If you work in C# or on a regular basis, you really owe it to yourself to try out Resharper. This tool saves me countless hours. James Kovacs put together some fantastic screencasts on “ Becoming a Jedi” that show it in action, if you are curious. He hasn’t covered the features that make it a boon for test driven development yet, but there’s another great screencast that shows that off, and this post provides some additional details on “coding in reverse” with Resharper.