Reassign JavaScript Function Parameters In Reverse Order, Or Lose Your Params

Every now and then I need to have a method support 2 or 3 arguments, providing a default value for one of them if only 2 are specified. My typical solution is to check the number of arguments passed to … Continue reading 

Posted in Javascript, NodeJS | 12 Comments

What I learned by coding with kids on my summer vacation at That Conference, an essay by Sharon

It was a perfect moment. I’m at last year’s That Conference, sitting in the big dining hall, while people step up to a microphone at the other end of the room and announce the Open Spaces session they will convene … Continue reading 

Posted in Uncategorized | 4 Comments

Build A (local) Webcam With WebRTC In Less Than 20 Lines!

WebRTC is all kinds of super ninja epic awesomesauce stuff. If you haven’t looked in to it yet, you’re going to want to get on that soon. I’d suggest starting with the HTML5 Rocks post on getUserMedia. Build Your Own … Continue reading 

Posted in HTML5, Javascript, WebRTC | 9 Comments

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