Previews, Previews, and more Previews.
Love 'em… but it is hard to see the big roadmap sometimes.
We've been furiously pumping out new business logic and the code to expose it via our new friend: the ASP.NET MVC framework.
Keeping up with the previews is a lot of work on its own… but I think that's a good thing! (it shows how furious the MVC team is working). Read the blogs… any tech docs I can find… the forums… and only god knows how many hours I've logged in reflector.
I have MANY questions about the future of MVC that continue to remain a mystery. If my extensive web searching doesn't yield results, I turn here-although I haven't had a lot of success getting the replies to come in whether it is a simple question or a more advanced topic. Perhaps the answer is simply "we don't know yet" … or (is hard to resist the thought) that Microsoft is withholding these answers for business and/or legal reasons. Don't worry, I'm not bitter over that possibility-I am a strong advocate for wise business/legal decisions. :)
Yet, I'll post more and hope for the best.
ModelBinders
Great idea… but I'm not sure they are in the right place (System.Web.Mvc). It seems to me that binding and validating user input is more of a core concept rather than MVC (or any web technology) specific. Models could certainly use this kind of binding and validating in WinForms and WCF. I just hope this doesn't end up like the JavascriptSerializer vs. DataContractJsonSerializer.
One of my (rough) general rules I have for keeping code in its proper assembly is this: If something requires me to reference System.Web* in one of my core assemblies, I'm doing something wrong. I would like to keep the binders close to my Models (which are in a core assembly) because of the reason in the previous paragraph… however, currently I'd have to break my rule to do so. Sooo, my Binders are in my Web assembly. I'm Ok with it for now, since this is all "preview" code… but can anyone tell me what the bigger roadmap is for these?
FormCollection
Why pass it in to the action? Can't the Controller class just expose it as a property? It could probably just be lazy loaded if nothing else… and it would still be testable.
System.Web.Abstractions
Much needed. I'm SOOooo excited. But I want to know: will these get pushed under the existing ASP.NET framework someday? Looking at how they've been setup, it seems like they might be considering this. (IE: all the abstract classes with wrappers)
…Ok, that's enough for now.
Maybe I just haven't stumbled on the right blogs or used the right query terms in my google.. aheerrm.. I mean Live searches yet. ;)
SO, please share your thoughts…