Post mortem 7dl 2013

First happy to finish. Very tough week with work, family and 7drl. A week is not very long to build a game !!!!

Am happy with end product but it’s clear I am way way off the qty of so many other 7drlers… Have only had a look at about 6 but the gameplay and graphics are miles above mine. At least it gives me a good idea of where I need to head for next year.

Ok soon honor of Lee Van Cleef let’s break it down

The good

Deployment – learnt a lot from last year. HTML 5/js and asp .mvc was so easy to deploy with visual studio, last year I mucked around with windows installers.

Script engine – ok a bit rough but I decided to try to build a scripting engine (Dominicscript) in a week… and despite its rough edges it sort of works and I’ll expand it in v2.0.

Scott Hanselman – big thanks for him agreeing to be in the game!!!!

The Bad

Graphics -yuk!!!!

Speed – still too slow

The Ugly

Code – The rush to finish led to lots of rubbish code particularly on the last day.


So there it is my 7day experience this year, check out the game (any modern browser is all you need)

My 7DRL have a go and let me know what you think

Ok this is a fairly crazy game – I built in 7 days (actually would end up to be about 20 -30 hours)  with a lack of sleep  – if you have a chance to have  a play – let me know your thoughts – big thanks to Scott Hanselman for letting me use him as a main character. I’ll publish the code soon

It’s written in mvc4, html5, Javascript





Fix for ASP.NET MVC3 Add Controller – An item with the same key has already been added

Just an interesting little find – so I added a new entity to my EDMX and lo and behold I start getting the “An item with the same key has already been added” when I tried to add a controller – anyway the fix was to remove a couple of rougue navigational properties that had been added automatically!!!!

So if you don’t need them and they are causing this problem – remove them


Enterprise Scale .NET Guidance

You know there are a million .NET sample apps, Tutorials, You Tube Video Tutes, MIX/PDC Videos,Console Apps and Hello Worlds going around for any given aspect of the .NET. They have an important role to fill when you need to get a few lines of sample code to try out or just build a quick CRUD application to demonstrate aspects of a tool(s). Getting quickly into things like MVC, Silverlight,WPF and jQuery for me has been based on these types of resources because its a great starting point into a Technology. It’s also a great way to get the few lines of code you need to get that SPECIAL functionality into your application.

There is however a general lack of resources when looking at the enterprise scale development. This gap is fairly significant because in general without reference points for enterprise scale development it can be hard to start building a large application unless you have existing code or developed those scale applications before. There are a few excellent books and attached sample projects but its rare that these types of artifacts are free. Design patterns and guidance do exist. Martin Fowler, Eric Evans,Uncle Bob Martin and others have developed a stack of guidance,patterns and practices but again its rare that this guidance are combined into a significant sample application.

Don’t dispair. I have found a great resource and guess what? Its Free!!!

In terms of tool kit the following are the key components:

  • WPF
  • Silverlight
  • MVC (I removed the other UI projects just to keep the sample MVC only)
  • Entity Framework
  • Unity
  • Moq

It’s great because its not just a significant sized application. It’s not massive mind you but its infrastructure is significant. It contains cross cutting areas like Security and Logging and shows how to structure an application into a logical set of layers. What is really important though is the quality of the documentation. The massive PDF** is a great document. Its well written and has a very strong explanation of the design principles used that are based heavily on the major design principles we know and love (SOLID, GoF Design Patterns etc…). As it says on the site:

“Its main goal is to show how to use .NET 4.0 wave technologies implementing typical DDD patternsN-Layered Architecture, Domain Entities, Aggregates, Repositories, Unit of Work, Domain Services, Application Services, DTOs, DTO-Adapters, etc

**I have only really reviewed the V1 version and although thats still MVC2 – it still does the job of describing how to build an enterprise scale .NET app.

Happy Coding