Lowry Media
Technical Blog
Entry on Aug 16, 2008 3:48 AM
I am going to show how I initialize the Windsor container in web applications. Keep in mind, there are 100 ways to do this; this is the method I chose based on experiences while working with Windsor. Read more
In previous articles, I discussed class dependencies, interfaces, and concrete implementations. This article will cover the very basics of setting up Castle Project's Windsor to do dependency injection from a configuration file.
Read more
Entry on Jul 24, 2008 10:58 PM
In a previous article, I discussed the benefits of passing interfaces as parameters to a method instead of using concrete classes. Now I’m going to discuss other ways in which using interfaces can help future-proof your code, make it testable, and more extensible. Read more
The number of times I have run into the following problem is astounding. I need to bind a list of complex/nested objects (those that contain other objects) to a gridview and show the values of nested objects. For example, let's say I have the following Customer class which contains a State object that holds information about in which state the customer lives. Read more
Entry on Jul 6, 2008 4:01 PM
Judging from the comments section (lack there of), I am certain that no one has noticed my recent bombardment of comment spam. I've been fighting it by deleting rows from the database until I had time to implement some type of solution to combat the spam. Today, I finally made the time to develop a captcha implementation for the site. It is not fully complete as I want to add in support for disabled javascript; however, I thought I would share the solution anyways. Read more
Entry on May 28, 2008 5:19 PM
Today, I ran into a situation where I needed to proper case a string for display purposes. After a little research on Google, I found a few snippets and put them together to make this extension method... Read more
Entry on May 26, 2008 8:24 PM
When designing architectures in .NET, I frequently use interfaces for parameter types in my method signatures. This post will help to explain why I choose to do this and the benefits of coding in this manner.

Let's just say that you had the following two methods implemented in your data-access layer. The first calls the database and returns a result set to the SqlDataReader. The second method fills the a list of articles by iterating through the result set in the SqlDataReader and adding an article to the list for each row in the result set. Read more
Entry on May 18, 2008 7:49 PM
Going forward, I will continue to post about useful extension methods that I reuse frequently. Today, I will be talking about IsNullOrEmpty and how we can use this extension method to write less code when dealing with lists.

Frequently, my service methods return lists of things (IList<T>). When these lists are returned, I check to ensure that they are not null and that they have at least one item (count > 0). After seeing this snippet duplicated throughout my code, I decided to pull it into an extension method to reduce the repetition (see DRY). Read more
Entry on Mar 31, 2008 4:46 PM
In the course of experimenting with the new MVC release for .Net, I stumbled across a post on the ASP forums where someone was explaining his approach to architecture using MVC. In reading further, I found that he was using dependency injection; a reusable design pattern presumably brought to .Net from Java world. Read more
Entry on Mar 27, 2008 12:19 AM
This is the typical post in which I state my excitement to finally join the blogging community. In the future, I plan on covering topics from all aspects of technology. My expertise is in the .Net Framework and related technologies, so expect much from that realm. Read more