Author Archives: Mo Khan

About Mo Khan

mO, is just a kid who's excited about writing software. He's a student of his profession, and just wants to share his thoughts on software development.

Container Configuration

In my last post I briefly mentioned how we were wiring some components in to our container.  The syntax looked like the following: container.AddProxyOf( new ReportPresenterTaskConfiguration(), new ReportPresenterTask( Lazy.Load<IReportDocumentBuilder>(), Lazy.Load<IApplicationSettings>()) ); We’re using Castle Windsor under the hood, but we … Continue reading 

Posted in Design Patterns | Leave a comment

Lazy Loaded Interceptors

Patterns of Enterprise Application Architecture defines Lazy Load as: An object that doesn’t contain all of the data you need but knows how to get it.   A while back I was trying to figure out how to lazy load … Continue reading 

Posted in Books, Design Patterns, TDD, Tools | 4 Comments

Opening Doors

joshka left a comment on my previous post that reads… "… Can you talk about the Application Context and IKey stuff a little in a future post?" The IKey<T> interface defines a contract for different keys that are put into … Continue reading 

Posted in Design Patterns | 2 Comments

Mocking Queryables

Recently, we’ve been mocking out IQueryable’s as return values, which had led to setups that look like the following… programs.setup_result_for(x => x.All()).Return(new List<IProgram> {active_program,inactive_program}.AsQueryable()); I just switched over to the following syntax… by creating an extension method. programs.setup_result_for(x => x.All()).will_return(active_program,inactive_program); … Continue reading 

Posted in TDD | 1 Comment

Intercepting Business Transactions

In Patterns of Enterprise Application Architecture, the Unit of Work design pattern is defined as: Maintains a list of objects affected by a business transaction and coordinates the writing out of changes and the resolution of concurrency problems. NHibernate seems … Continue reading 

Posted in Uncategorized | 3 Comments

Collecting Errors

Validation is a tough subject. One that I’m constantly trying to think of better ways of doing. Some suggest that all validation should occur in the domain, and some prefer to check if the object is valid before proceeding. I … Continue reading 

Posted in Design Patterns | 7 Comments

JetBrains Seeder Program

Today I received an email about the JetBrains Seeder Program, and thought that I would try to sign up for an account to find out more. Can you help me understand, what JetBrains is trying to tell me?   Post … Continue reading 

Posted in Tools | 1 Comment

Glamma’s and Friends

My wife is running in this years CIBC Run for the cure, on Sunday October. 5th 2008. This is an annual fund raiser to raise money for breast cancer research. This is a cause that is near and dear to … Continue reading 

Posted in Community | 1 Comment

The FUN-duh-MENTALs

So tonight I got to help demo what a fishbowl was at the ALT.NET Canada (thanks Doc!) conference and the topic of discussion was on the Fundamentals of Software development. During the session I started to realize that what I … Continue reading 

Posted in Programming | 1 Comment

Droppin’ Pennies on context specs…

First off I want to make it clear that I’m not a guru on the topic, but I do find it interesting. The topic of course is Context Based Specifications. I’ve seen an emergence in interest in writing context based … Continue reading 

Posted in TDD | 4 Comments