Using The Adapter Pattern

posted on 03/28/08 at 08:00:57 pm by Joel Ross

In my last post about Dependency Injection, I sort of just threw in a comment about using the Adapter Pattern to address a mismatch between existing classes and interfaces that those classes need to support. I didn't provide a link or any real explanatio… more »

Categories: Development, C#


 

Using Dependency Injection To Increase Flexibility

posted on 03/28/08 at 12:31:15 am by Joel Ross

Tonight, I was thinking about a side project I've been working on, and I realized that I had used Dependency Injection (DI). I'm pretty sure that DI is my favorite pattern, so I decided to share on twitter. Steve Wright responded: I wonder what all… more »

Categories: Development, C#


 

Retrofitting Code for the Web

posted on 02/27/08 at 02:45:06 pm by Joel Ross

Yesterday, Scott Reynolds posed a question about a problem he'd run into while making a web interface for his current project. The essence of his issue is that they have a static class that stores the current user and database connection string, and havi… more »

Categories: ASP.NET, Development, C#


 

Code Formatting

posted on 02/27/08 at 02:07:48 pm by Joel Ross

Sorry if you see this, but I needed to test code formatting from Windows Live Writer.   1: public static class Data 2: { 3: private static string _userId; 4: public static string UserId 5: { 6:… more »

Categories: C#


 

Creating Your Own Provider Framework

posted on 02/20/08 at 12:53:51 am by Joel Ross

The Provider pattern is used in quite a few different locations in the .NET Framework (2.0). It's used for Membership, Roles, SiteMaps, and for encrypted configuration file sections. If you search around for help on them, you'll find quite a bit - but th… more »

Categories: Development, C#


 

Setting Up A Sub-Site Under SiteFinity

posted on 12/28/07 at 11:15:51 pm by Joel Ross

On my current project, we're implementing Telerik's SiteFinity CMS product. It's an existing site, so there's lots of custom functionality that we still want to be able to use. Rather than building that into the main SiteFinity site, we opted to keep it… more »

Categories: Development, Software, C#


 

XML Comment Documentation Guide

posted on 12/09/07 at 08:44:32 pm by Joel Ross

I've seen quite a few posts about XML documentation guidelines, but this is by far the best I've seen thus far. It goes a step further than any I've seen - it specifically highlights what is supported by Visual Studio, NDoc, and Sandcastle, so you can ma… more »

Categories: Development, Software, C#


 

1,000 Lines Of Code

posted on 11/29/07 at 10:56:55 pm by Joel Ross

ScottW has an interesting new theory for prototyping: if you cannot build an interesting working version of an application in less than 1000 lines of code, you are likely over complicating things. I think he's actually talking about more than p… more »

Categories: Development, C#


 

Sending Email In C# Through Gmail

posted on 11/12/07 at 10:33:55 pm by Joel Ross

I've recently written about how Tourney Logic has switched all of it's email over to Google Apps. Well, one side effect of that is that our applications had to be updated to send our email through the Google servers rather than the email servers we were… more »

Categories: Development, C#


 

Using HttpContext.Current.Items Effectively

posted on 11/07/07 at 12:13:54 am by Joel Ross

I'm a huge fan of HttpContext.Current.Items, and have been for a while, but I rarely see others using it. I have mixed feelings about that - am I off-base in using it and don't realize it, or did I stumble onto a gem that just isn't used as much as it co… more »

Categories: Development, C#


 

<< 1 2 3 4 5 6 7 >>