New Here?
If you’re new here, you’ve missed out on some good stuff. This page lists a few of my best posts, and some of my personal favorites as well. Hope you enjoy them
If you want to continue reading my posts, consider subscribing to my RSS Feed and you might also want to keep track of the comments from readers (they are usually pretty interesting as well
)
Note: there’s obviously a lot more in the archives, so be sure to check those too
Series
- Build Your Own Data Access Layer Series
- Request/Response Service Layer Series
- MVP In Silverlight/WPF Series
Various
- The Life And Times Of A Bug
- Challenge: Do You Truly Understand This Code?
- The Commented Version Of The Readable Code Challenge
- Protecting Your Application From Remote Problems
- Finding Memory Leaks In Silverlight With WinDbg
Opinions
- At This Point I’d Prefer Java Developers Over .NET Developers
- Educate Developers Instead Of Protecting Them
- This Is Why I Don’t Like Microsoft’s Way Of Open Source Development
- Beware The Evils Of Code Generation
- Why I Dislike Classic Or Typical WCF Usage
- What Microsoft Should Do For .NET Open Source
- Support Of Commercial Software Vs Open Source Software
- Career Advice for Young Developers
- My Guide To Effective Test Driven Development
- Why You Should Write Tests Before Code
- ALT.NET: What Does It Mean?
- Software Development Books: Investing In Yourself
- What Do You Like About Coding?
- Many Projects Don’t Lead To A Good Solution
- ORM Is NOT Inherently Evil
- Test Doubles: When (Not) To Use Them
- Is SQL Going The Way Of Disco?
- Programming Languages Don’t Matter
Methodology
NHibernate
- Must Everything Be Virtual With NHibernate?
- NHibernate Mapping Examples
- Data Access With NHibernate
- Querying With NHibernate
- Batching NHibernate’s DML Statements
- Bulk Data Operations With NHibernate’s Stateless Sessions
- Populating Entities From Stored Procedures With NHibernate
- Quickly Setting Up And Using NHibernate’s Second Level Cache
- NHibernate And Future Queries
- NHibernate And Future Queries, Part 2
Performance
- Performance Rules Of Thumb
- Batching WCF Calls
- The Request/Response Service Layer
- .NET Memory Management
- Batching++
- Storing Data In The HttpSession
- Why You Should Always Unsubscribe Event Handlers

April 8th, 2010 at 6:24 am
Hi Brion,
I have been reading your posts and learns a lot from them . thank you very much.:)
I have some questions about agatha:
when I write data access layer with agatha, I also need register some service with IoC container,which place do you think is better to place it? In the data access Layer,or in the ServiceHost? normally we need a dto for transfering objects, which location you you think is better to use dto mapper? In handler layer or data access layer.
Maybe in the futuer we’ll change the way to access database,but we don’t want also change our hanler’s ,can you give us some suggestions?
Do you think it’s possilbe to merge Module(from Composite Application Guidance for WPF and Silverlight ) in the future?
It’s better if you could give us some suggestions how to organize our projet solution.
Thank you very much
Brevin
April 12th, 2010 at 8:25 am
@Brevin
it doesn’t really matter that much where you register the service with your IOC container… the important thing is that it’s registered before it’s used the first time, so i usually register everything when the service host is started
as for the dto mapper usage… if you can return the DTO’s directly from the data access library you’re using (through projections if you’re using NHibernate for example) then that is often better than retrieving entities only to map them to DTO’s. But there is no clear-cut rule on which is best… as usual, it depends
not sure what you mean with the Module thing though…
August 6th, 2010 at 2:57 pm
Hi,
Here is the line of code where I am getting problem,
I am using Agatha for wcf communications, What I am trying to do is to create dynamic url for local services, so that I no need to specify or hardcode the url in .xap clientconfig path. But I always get Invalid URI: The format of the URI could not be determined. exception when I am trying to use below code
//// Get Silverlight Application host URI
var hostUri = Application.Current.Host.Source;
//// Build Request Processor URI (using a convention for now)
var navigatorProxyUri = new UriBuilder(hostUri.Scheme, hostUri.Host, hostUri.Port,
string.Concat(hostUri.AbsolutePath.Substring(0, hostUri.AbsolutePath.IndexOf(“/ClientBin”)),
“/Services/NavigatorProxyService.svc”)).ToString();
var navigatorProxyUrl = new Uri(navigatorProxyUri, UriKind.RelativeOrAbsolute);
new AsyncRequestProcessorProxy(“Agatha_IWcfRequestProcessor”, navigatorProxyUrl.AbsoluteUri);
Immediate help wil be highly appricieted
regards
Akhil
August 6th, 2010 at 3:15 pm
@Akhil
are you absolutely sure that the URI is indeed valid?
also, for agatha related questions you’re better off on the Agatha google group