var Matt = new Hero();

C#, ASP.NET MVC, MEF, Javascript…and anything else that interests me.

Posted by Matthew Abbott 3 COMMENTS

See also: Modular ASP.NET MVC using the Managed Extensibility Framework (MEF), Part One
Currently reading: Modular ASP.NET MVC using the Managed Extensibility Framework (MEF), Part Two
See also: Modular ASP.NET MVC using the Managed Extensibility Framework (MEF), Part Three

In my previous post I presented an MVC Framework that uses the Managed Extensibility Framework (MEF) to allow for [...]

Categories: .NET
Posted by Matthew Abbott 15 COMMENTS

I’ve recently been introduced to the Managed Extensibility Framework by a colleague at work, and have enjoyed picking it up so much it made me wonder how I could apply the simplicity of composition into my favourite web framework, ASP.NET MVC. There are a few obstacles to overcome initially, namely how instances are composed [...]

Categories: .NET, Development
Posted by Matthew Abbott ADD COMMENTS

Often is the case when you’re creating an application (be it web or not) the need for caching can become a critical part of software design. You can be faced with a myriad of designs and mechanisms used to store objects, and the specifics of how each container works from one implementation to the [...]

Categories: .NET, Development
Posted by Matthew Abbott ADD COMMENTS

.NET 4.0 introduces a new type, the Tuple. In mathematics, a tuple is an ordered set of elements, e.g. (1, 2, 3, 4, 5) is a 5-tuple. In programming (i.e. type theory) a tuple has a fixed size and the underlying type of its components is explicit.
With this in mind, we can understand tuples [...]

Categories: .NET, Development
Posted by Matthew Abbott ADD COMMENTS

I’m not overly keen on hard coding MVC routes in the application, so I’ve come up with a nice way of pulling the routes out of the application, and into a Sql Server table. All nicely wrapped up with Linq-to-Sql.

Categories: .NET, Development
Posted by Matthew Abbott ADD COMMENTS

I was wondering why our logging framework was reporting two 404 messages for each single failed request on our ASP.NET/IIS7 website. Turns out the answer is obvious…

Categories: .NET
Posted by Matthew Abbott 1 COMMENT

One of the things I’ve found most compelling about mixing up server-side and client-side technologies, is Javascript’s fantastic ability of generating on the fly objects. There are two parts to this awesome little trick, firstly, serialising the object at the server, and reading it at the client.

Categories: .NET, Development, Javascript

Me

Featured Posts

The Magic of IoC

I was bored…
…so I decided to design an IoC Container! This actually turned out to be a lot of fun too. I’d like to firstly state that a) there is no reason for this code, and b) this is not a replacement for established IoC solutions, such as Unity, Castle Windsor, Ninject, Authofac, StructureMap, and [...]

Integrating Regula with ASP.NET MVC and DataAnnotations

Previously I discovered Regula, an annotation-based validation framework used for client-side validation of form elements. I wondered if it was possible to automatically wire up client-side validation using DataAnnotation’s ValidationAttributes on the server side, very similar to how xVal might handle it.
This is by no means usable, its really an experiment to see what [...]

Regula as a jQuery Plugin

Earlier this evening I came across a Stack Overflow question regarding a most excellent new javascript validation framework, called Regula. Regula is an annotation-based validation framework that hides the complexities of binding complex validation events to controls by extending the DOM element itself with annotations about how it should be validated. Here is a [...]

Modular ASP.NET MVC using the Managed Extensibility Framework (MEF), Part Three

See also: Modular ASP.NET MVC using the Managed Extensibility Framework (MEF), Part One
See also: Modular ASP.NET MVC using the Managed Extensibility Framework (MEF), Part Two
Currently reading: Modular ASP.NET MVC using the Managed Extensibility Framework (MEF), Part Three

Firstly, sorry it’s been so long since my last MVC+MEF post, been a bit busy with life in general. [...]

Javascript Linq Extensions

I love Linq. Linq just makes code awesome. Well, that’s my view on it anyway. I also like Javascript, and through libraries like JQuery we’ve now got a framework whereby you can pretty much do anything, but often I like getting down to the bare-bones of Javascript and just having a go at what [...]

Search my site

Twitter Updates

Links