Wednesday 22 June 2011

ASP.NET Web Forms MVP - what MS forget

MS has created a Model-View-Presenter framework for web forms. ASP.NET Web Forms MVP
It looks very good and I will probably use it for new web form projects (god forbid) and inject it in legacy web form projects. I like the testability and SoC and features like databinding a la Silverlight and WPF.

But I think they miss one point, the point I like the most and the reason why I will stick to ASP.NET MVC. The marriage between MVC and AJAX. The RESTfulness of MVC. It allows me to build applications with high user experience. I don't like the PostBacks, ViewStates etc. And please don't mention UpdatePanels, I have banged my head against it enough. Especially when I compare it to the beauty of MVC + AJAX.

But for some projects it may be quicker to use web forms. Then I will use it. But it hasn't happend - yet...

Tuesday 14 June 2011

TFS: Check in changes to another branch

Sometimes you start working on some changes just to later realize that you have to interrupt your current work for other things. Then you all say: "That's what shelving is for!" then I say "yes, but sometimes you feel it would be better to make a branch with those changes instead. That works. Just create a branch (from a label or whatever) then shelve your pending changes and then unshelve your changes to that branch with TFS Power Tools:

C:\TFS>tfpt unshelve [shelve name] /migrate /target:$/Some/Path/To/Name-branch-NewFeatures /source:$/Some/Path/To/Name

Monday 13 June 2011

Easy to make an impression - use Jing from TechSmith!

I really recommend Jing from TechSmith. I'm not gonna talk too much about what it is, you can find that out by yourselves.
But it's really easy to make people impressed by it. Created a video clip where I showed some instructions on how to do a certain thing (instead of writing 10 pages of text-instructions). It was really - really - appreciated and impressive!

I also use it when I can't reproduce a bug and send it off to customers (instructions on how I try to reproduce the bug). Very handy!
Now, I just wish customers could send me bug reports as video clips... :-)

Web deploy from Visual Studio 2010

Saw a presentation (movie clip) where a person deployed to a remote IIS from VS2010 via Publish. It looked very sweet.
Web Deploy

The problem is, you have to do some (or a lot) configuration in IIS to allow this. All information is found in this blog post http://weblogs.asp.net/scottgu/archive/2010/09/13/automating-deployment-with-microsoft-web-deploy.aspx