Faking Mouse Events in D3
D3 is a great library but one of the challenges I have found is with unit testing anything based on event handlers. In my specific example I was trying to show a tooltip when the user hovered over an...
View ArticleConcurrently Testing JavaScript
You’ve heard of nCrunch, right? It’s a continuous integration plugin for Visual Studio that tracks changes to your code and then automatically builds and runs your unit tests in the background whilst...
View ArticleProtecting your CouchDB Views
If you work with a SQL or other RDBMS database you most likely have your schema backed up somewhere under source control. Maybe it’s a bunch of SQL scripts, maybe it’s the classes from which you...
View Article3 Ways to Deal with SFOUC in KnockoutJS
What is SFOUC? A Sudden Flash Of Unstyled Content, or SFOUC, refers to that irritating few milliseconds between when your web page loads and when all of your dynamic content pops into place. The reason...
View ArticleRESTful Reporting with Visual Studio Online
My team uses Visual Studio Online for work item tracking and generally speaking it has pretty good baked-in reporting. I can see an overview of the current sprint, I can see capacity and I can see...
View ArticleCustom Operation Names with Swashbuckle 5.0
This is a post about Swashbuckle – a .NET library that seamlessly adds Swagger support to WebAPI projects. If you aren’t familiar with Swashbuckle then stop reading right now and go look into it –...
View ArticleMaintaining Context in TypeScript classes
TypeScript is generally pretty good at persisting this in functions but there are certain circumstances where you can (either accidentally or deliberately) get a class function to run in the wrong...
View ArticleSupporting SignalR Client Handlers after Connection Start
(Yes, that is a pretty specific post title but then this is a pretty specific problem…) In general, when you create a new SignalR connection you are obliged to have already defined any of your handlers...
View ArticleCleaning up Resources using MutationObserver
Cleaning up resources? Let’s say you’ve written a shiny new component in your favorite framework and somewhere along the way you’ve allocated a resource that cannot be automatically cleaned up by the...
View ArticleFinding Freedom in “JavaScript Fatigue”
A lot of people have spoken about “JavaScript fatigue”: the idea that there are so many new frameworks, tools and ideas available to the average JavaScript developer that it’s impossible to keep up. I...
View Article
More Pages to Explore .....