Code Buckets

Buckets of code

Latest post

Better Numeric Range Input with ASP.NET MVC, HTML5 and JQuery

The Sin I recently wrote this horrible code to generate a drop down box to select any number from 1 to 12. Html.DropDownList(“ddlClockHours”, new List<SelectListItem> { new SelectListItem {Text = 1.ToString(), Value = 1.ToString()}, new SelectListItem {Text = 2.ToString(), Value…

Why Doesn’t My Visual Studio Solution Build? A Troubleshooting Guide

I’m pretty good at getting Visual Studio projects building correctly – I’m a bit of a Visual Studio whisperer. In one job I could get the ‘flag ship’ application up and running on a new machine in half the time…

10 Beautiful Software Development Haikus

In my day job I send a lot of very routine emails announcing new deployments or pleading with people to fix the continuous build. I’ve started to amuse myself by sending them as haikus (3 line poems with 5, 7…

The Worst Thing About Microsoft Exams

I’ve long been a bit of a fan of Microsoft exams – shiny new exams that give the veneer of professionalism to a CV. Lovely. I did a fair number at the start of my career and a few thereafter….

Troubleshooting blank pages and render failures in AngularJS.

An odd thing happened this weekend when I was tinkering with some code while pointedly ignoring my daughter and parenting responsibilities generally. The Task Put in a new directive to implement a reusable panel to display error information. Not ground…

T-SQL Random Data Generator

I’ve often had the need to populate database tables with chunks of random data for testing and so forth and this random data generator stored procedure does the trick for me. I’ve had it knocking round in my sock draw…

Free Book: JavaScript Best Practice

A quick one. Most web developers can write JavaScript and I suspect it’s on most developer’s CVs somewhere. But it’s easy to write bad JavaScript and not so easy to write the good stuff. I guess it’s because JavaScript itself…

Simple Debug Panel for AngularJS

I am aware that there are many many other ways to get debug information from an AngularJS application but that’s not stopped me implementing another one. I do actually find a customised output of JSON objects useful particularly when working…

Simple String Concatenation Filter for AngularJS

I’m currently tinkering around with Angular JS. I’ve always liked JavaScript and since there is currently one or two (thousand) JavaScript frameworks around I thought I would have a go at the Angular. It wasn’t immediately obvious how to cleanly…

5 Ways To Write More Robust SpecFlow Tests

I’ve lost track of the number of times I’ve walked into the office on a morning to be faced with a wall of failed SpecFlow tests. I care about my SpecFlow tests, I look after my SpecFlow tests, I feed my…