Author Archives: Andrew

Racism

When I was a child, I thought America was a place of racial harmony. At my school in Birmingham, (England, not Alabama) there was the average amount of racism, but on American TV shows, the U.S. seemed to my 8-year-old-eyes like a post-racial utopia: cops were always one-white, one-black; judges were invariably black women; silver-haired white guys adopted sassy black kids.

Of course, my 8-year-old self knew nothing. Continue reading

Copyright Reform

Wrote a wee letter to Vince Cable, Lord James Younger of Leckie and my MP. Possibly I shouldn’t have casually accused them of copyright infringement, but I think the other points are solid…

I was motivated to write by the campaign on Open Rights Group website. It’s an important subject. (Interesting choice of examples on it too; my MP, Tom Harris, lost his Social Media Bod post for making a ‘Downfall’ parody…)

Continue reading

MVC4 strongly-typed URL-routing… works

I published a post a few months ago about a project of mine, Dysphoria.Net.UrlRouting which aimed to bring strong typing to MVC4 ‘routes’.

If these words mean nothing to you, do not feel embarrassed (except if you’re a .NET web programmer, in which case, do feel embarrassed, and go read up on MVC post haste).

In the meantime I’ve excitingly a) used it for real in one production project two commercial, production projects, b) filled in some missing gaps, and c) improved the syntax a little. I’ve also d) published it as a NuGet package.

It’s reached the point where I wouldn’t work on an MVC project without it. I’d very much like if Microsoft took a wee look and added it, or added something similar, into MVC.

You can install it from NuGet. The package is called Dysphoria.Net.UrlRouting.

There’s now a webpage for it, which includes a bit of a tutorial.

You can grab the source off of github.

I should probably think of a catchy name for it. ‘STIR’? (Strongly Typed urI Routing?) ‘STRIM’? (Strongly Typed Routing urI Mechanism?)


The only real shortcoming I’m aware of at the moment is that it does not currently handle file uploads—but you can mix in some old-style MVC routing to deal with those.

Give it a try!

On Zombies (in World War Z)

[Movie poster: “World War Z”]I recently went to see World War Z. I’m not really a big zombie movie fan, but it was suitably exciting and nerve-wracking. I quite enjoyed it.

It is however, a little bit silly.

For example, the friend with whom I watched it, just didn’t buy John Gordon Sinclair as a US Navy SEAL Commander.

I didn’t quite buy how the zombies worked.

Now, if you don’t enjoy a bit of pedantic nit-picking or if you fear plot spoilers, please look away now.

SPOILERS FOLLOW

Continue reading