-
Ian Griffiths posted a great example of how powerful and cool LINQ is when used in everyday code (it's not all about databases people). If you haven't started to learn how to incorporate this awesome toolset into your daily coding life, you're killing yourself. No excuses.
-
I've been a faithful unit tester for a few years now. I may not do everything by the book (I think end-to-end unit tests are helpful), but I do get good coverage most of the time. That said, I've found myself unable to use any of the Mock frameworks out there, because I don't use your typical...
-
http://dnrtv.com/default.aspx?showID=115 Just awesome! I didn't see anything far fetched other than they must have a great designer on staff. I wonder if the designer was doing the Blend work?
-
I don't often have the need to implement the Visitor Pattern , but today I was that day. I looked around really quick for an example of how to do this with Lambda Expressions and Anonymous Methods , which seemed like they were the way to go. It may be that my search skills have deteriorated right...
-
For those of you who use NHibernate you may find this convenient, if you don't already have your own. Below is a C# code snippet for creating a public virtual property (code and file are both there). Just put it in your <Visual Studio 2005/2008>\Code Snippets\Visual C#\My Code Snippets folder...
-
Get your head out of the gutter. It's important to look at your mapping files closely when trying to diagnose unexpected results. One of our developers had recently added two properties to our big honkin' CustomerOrder entity. These both happened to be enumeration values, which are represented...
-
When I'm trying to explain things to people or just want to try something out really quick I'll often create myself a temporary Visual Studio projects that I don't intend to keep around. In fact, I have an entire Temp folder full of them. I always loved that in the VB 6.0 IDE you could choose...
-
It has been quite a New Year so far. As of today, Monday January 14th 2008, I have left Speedway and the Speedy Rewards™ team and found new employment with SDS Consulting and I have new eyes courtesy of Lasik Plus of Dayton . I'd say that's a fairly ambitious first two weeks. I'm still working...
-
So last weekend I picked up the new ASP.Net 3.5 Extensions Preview CTP (and MVC Toolkit ) from the ASP.Net team and I'm loving the MVC bits. I never could get in to MonoRail mainly because I'm a developer diva. I need intellisense, syntax highlighting, the whole deal. For a CTP, this release...
-
I posted recently a manual .reg file for adding the NHibernate Query Generator custom tool to Visual Studio 2008. I just sent Ayende an update to the .Setup Product.wxs, a WiX file, which adds a new fixture specifically for 2008. If you are interested in building the installer and running the trunk of...
-
I've updated my PerformanceHelper class that I'll throw around certain code blocks to help trend or monitor performance. Before it was merely a PerformanceCounter wrapper with a few metrics, but now you can specify Console, Debug and/or Perfmon. You do this by using an XOR ( '|' ) in...
-
Here's one of those real-world situations that no one bothers to demo. If you are building a form or have some sort of input your gathering from the user, you'll likely want the first input control Focused initially. You have a few ways to do this (in ascending order of recommendation): Call...
-
This evening the Central Ohio .NET Developers Group was nice enough to let me present on WPF. Everything went fairly well, though it was more a test of my efficiency in WPF development than I had planned; I managed to leave behind the external hard drive that had my code-snippets, slides (both of them...
-
If you happen to use CodePlex as I do, I hope you found Team Explorer for Visual Studio 2005 to be a huge productivity boost. With Visual Studio 2008 it wasn't entirely obvious to me how to replicate this setup. It turns out that Team Explorer can be installed individually from the Visual Studio...
-
I'm working on a WPF app for my wife who coaches our local high school track team. One of the features she wanted was to have some images for different players and teams and, religious debate aside, I have chosen to save these in SQL Server 2005. I'm using NHibernate for all my data access which...