The Holy Trinity of Web 2.0 Application Monitoring
We had just rolled out a new system for a client and they were doing a high profile launch of their product. We had all our normal monitoring in place like CPU, memory, connections and page load time....
View ArticleDomain Driven Design in the Small
A few months ago we built a Magento extension to send orders to a product supplier via soap for payment and fulfillment along with affiliate tracking. As part of the process, a contact record was...
View ArticleIntegration Testing with NHibernate
While the first-level cache in NHibernate is great for production, it can be super annoying for integration tests. Basically I just want to make sure my mapping works and that when I save an entity it...
View ArticleWhere Does it Hurt?
Notes from my Brown Bag Learning Forum Presentation. Download the source code, or just sit back and relax. GoF Patterns: Chain of Responsibility Decorator Adapter Buzz Phrases: Single Responsibility...
View ArticleCustom Model Binder in ASP.NET MVC
The default model binder or DataAnnotationsModelBinder in ASP.NET MVC works well for simple data structures that basically map properties directly to form elements, but it quickly breaks down in a real...
View ArticleInheritance is Evil: The Epic Fail of the DataAnnotationsModelBinder
The DataAnnotationsModelBinder is a pretty neat little class that enforces validation attributes on models like this one: public class Product { public int Id { get; set; } [Required] public string...
View ArticleConfiguring Decorators with Google Guice
You have a few options and each have their trade-offs. The one I find least annoying requires using a binding annotation. Since I’m stuck using annotations with Guice anyway, using one more to...
View Article