Client-side Model-View-Presenter

Sign in to queue

The Discussion

  • User profile image
    Cyonix
    Thanks for the screencast, i'm going to take a closer look into Script#.

    Have you had a look at ProMesh.Net?

    I realise ProMesh is a server side MVC framework but still thought you might be interested in it...
  • User profile image
    Andrew Davey
    Seeing as client-side MVP is viable, the next step would be create a framework to reduce some of the boiler-plate coding required. For example, the View class that basically maps to and from DOM elements could probably be code generated.

    Thanks for the link to ProMesh.NET, I like the use of attributes making the whole process much more declarative. I'll certainly be considering similar approachs when expanding my client-side MVP framework.
  • User profile image
    codewiz
    Nice job Andrew!
  • User profile image
    Andrew Davey

    So I reckon phase two is to use my tier-splitting macro to enable certain model methods to be decorated with [RunAtServer] attributes.
    The macro would do all the plumbing to call the server and execute the model there. This would allow a totally seemless Model class to be written. With the client part ending up in JavaScript and the server part being C#.

  • User profile image
    mamadero
    Andrew:

    The last post is from September.... just wanted to know how did you do with this design?
    You mentioned you was doing a project, how did it go?
    Is there an updated version of the framework?

    Thanks

Add Your 2 Cents