Marcel

This user hasn't shared any biographical information

Homepage: http://www.marcdormey.com


Posts by Marcel

Creating a custom ValueType and Serialising with a custom JsonResult

February 26, 2010 - 12:21 am

Tags: , , , , , ,
Posted in C#, IPhone, JQuery, Visual Studio | No comments

When trying to serialise your model into Json you would notice the ugly way that the Microsoft JavaScriptserializer outputs dates. ie. {”d”:”\/Date(1240718400000)\/”}
This might not be a problem when you are using JQuery or Javascript, but what if your consumer is, say, an IPhone or another device? Wouldn’t you rather stick to a platform independent [...]

NBouncer, my Context Aware Validation Framework

November 12, 2009 - 1:12 pm

Tags: , , ,
Posted in ASP.NET MVC, C#, Misc | No comments

For most people out there using the current Validation Frameworks (DataAnnotations, Nhibernate Validation) are more than enough. But for some, like me, I need mine to be “Context Aware”.
What do I mean with “Context Aware”? Well lets say, for instance, that you are phoning your bank for an insurance policy. The first thing they need [...]

Writing Facebook Apps with ASP.NET MVC, Silverlight, LINQ2Facebook and BDD

November 10, 2009 - 12:19 pm

Tags: , , , , ,
Posted in ASP.NET MVC, C#, Misc | 3 comments

This weekend I looked into creating facebook applications from a .NET perspective. It turns out a quick search presents loads of support starting with the Facebook Developer Toolkit (Update: Just heard version 3 was released yesterday which gives silverlight and mvc support, wow what a coincidence?) and LINQ2Facebook (Fql).
I decided to do some research and [...]

ASP.NET MVC JQuery ScriptManager

October 23, 2009 - 12:19 pm

Tags: , , , , ,
Posted in ASP.NET MVC, C#, JQuery, Misc | 2 comments

As I was developing a CMS system for a client, we had a very unique scenario (well maybe not that unique) where we had custom “parts” which you could add to a page. The “parts” were highly customisable, thus you could have 3 instances of the same “part” on one page. The html and javascript [...]

jLinq – LINQ for JSON

October 19, 2009 - 11:44 am

Tags: , , , ,
Posted in CSS/Html, JQuery, Misc | 2 comments

Sometimes I stumble accross something and immediately think “where has this been all my life?”. Finding jLinq is one of those moments.
I love Language Integrated Query (LINQ) and have used it for the last couple of years. With LINQ2NHibernate, LINQ2Lucene, LINQ2Amazon and even LINQ2Twitter emerging, it is very clear that LINQ is here to stay.
Enter [...]

Yes/No Dropdownlist Extension for ASP.NET MVC

October 14, 2009 - 10:51 am

Tags: , , ,
Posted in ASP.NET MVC, C#, CSS/Html | 1 comment

I am not a big fan of using checkboxes for a simple yes/no question on a form. I use checkboxes only for selecting multiple items to perform an action on, or when I am using a checkboxlist. The reason for this is because I believe a yes/no question has three possible states, not only two. [...]

Update Form Fields with JSON result in ASP.NET MVC

October 5, 2009 - 11:28 am

Tags: , , , ,
Posted in ASP.NET MVC, C#, JQuery | 3 comments

Wouldn’t it be nifty to receive a JSON result object from AJAX and it automagically updates your form fields? Those who said “No” leave now!
I had to find a way to iterate through my JSON properties and, if I named the fields the same as the JSON properties, update them all in one go.
Lets use [...]

Kaboom! – JQuery MVVM Framework for the web

September 30, 2009 - 1:41 pm

Tags: , , , , ,
Posted in ASP.NET MVC, C#, JQuery | 2 comments

“Kaboom!” is one of those things you stumble upon and intrigues you from the start. It probably needs more work (not to mention documentation), but certainly gives you a peak at what I believe could be the next big thing in the ASP.NET MVC world. Having just finished a CMS system where I used a [...]

Agile Programming using SOLID Principles

September 24, 2009 - 10:01 am

Tags: , , , , , ,
Posted in ASP.NET MVC, C#, Visual Studio | No comments

If you use Agile as project management methodology then you must have heard of the ‘SOLID’ principles. Agile and SOLID goes hand in hand.
Uncle Bob has a great article on SOLID and explains each principle in detail with examples.
A summary of the principles below:

S – Single Responsibility Pattern
A class should have one, and only one, [...]

Behaviour Driven Development in NUnit with StoryQ

September 22, 2009 - 12:38 pm

Tags: , , , , , , , ,
Posted in ASP.NET MVC, C#, Visual Studio | 2 comments

A few months ago I started with BDD (Behaviour Driven Development). The first thing I noticed with most frameworks (MSpec, NBehave) is that you either need a new test runner tool (Galio) or need quite a bit of tweaking to implement the respective framework with Test-Driven.NET or Resharper’s test runner (Galio has a Resharper plugin). [...]