Avoid many-to-many mappings in ORMs

Going through and reviewing the Contoso University codebase, really to get caught up on EF 6 features, I found a relationship between two tables that resulted in a many-to-many mapping. We have these tables: A Course can have many Instructors, … Continue reading 

Posted in Entity Framework, NHibernate | 13 Comments

Efficient querying with LINQ, AutoMapper and Future queries

Even after all these years, I’m still a big fan of ORMs. One common complaint over the years is people using ORMs use the tool identically for both reads and writes. With writes, I want tracked entities, managed relationships, cascades … Continue reading 

Posted in AutoMapper, Entity Framework, LINQ | 30 Comments

Testing Stripe.com WebHooks With Requestb.in

SignalLeaf uses Stripe.com for billing. One of the cool things it does is provide web hooks to get events so that you can have your system do things in response to those events. Examples of events include customer creation, customer … Continue reading 

Posted in API, Runscope, SignalLeaf, Stripe, Testing | 1 Comment

7 Things I Learned From 175,000 Eyes And A Failed Ad

Through an interesting turn of events, I was given an opportunity to place an ad for my Backbone Plugins eBook in a very prominent web development newsletter – one that has 175,000 subscribers. Needless to say, I jumped at the … Continue reading 

Posted in Advertising | 11 Comments

Cleaning Up Test Failure Noise

The Fixie test framework has no built-in assertion library, since assertions are an orthogonal concern to the nuts and bolts of test discovery and test execution. Although I stand by the decision to avoid including a built-in assertion library, there … Continue reading 

Posted in Uncategorized | 1 Comment

4 Sci-Fi Novels That You Have To Read

A few months ago, I posted a short list of sci-fi novels worth reading. It was a bit of an experiment for me to post that, since this is a technical blog. But the post seemed to be popular – … Continue reading 

Posted in Books, Books Reviews | 13 Comments

Reducing NServiceBus Saga load

When presented with concurrency issues with NServiceBus sagas, you’re generally presented with two options: Relax the transaction isolation level Reduce worker thread count, forcing serialized processing of messages Both of these are generally not a great solution, as neither actually … Continue reading 

Posted in NServiceBus | 10 Comments

Using A Single Git Repository For Multiple Heroku Projects

SignalLeaf has 2 separate services, at this point: the web app and the media server. Both of these services are deployed to Heroku, each on their own Heroku app instance. This allows me to scale them as needed. I give … Continue reading 

Posted in Deployment, Git, Heroku | Leave a comment

Angular JS–Part 13, Services

Introduction In this post I am discussing services and how they are constructed and tested. The list of earlier posts in this series about Angular JS can be found here. What is a service? In Angular a service is a … Continue reading 

Posted in Uncategorized | 5 Comments

Angular JS blog series – Table of content

This is a series of posts about AngularJS and our experiences with it while migrating the client of a complex enterprise application from Silverlight to HTML5/CSS/JavaScript using AngularJS as a framework. So far I have published the following posts AngularJS … Continue reading 

Posted in AngularJS, introduction | 3 Comments