Posted by
Joe Wilson
on Wednesday, February 3, 2010 12:32 AM
Thanks to all those who came out for the Colorado Springs User Group. The slides and code can be downloaded here. There were a few complaints about the black background in Visual Studio making the code harder to read. I'm sorry about that. Next time, I'll use the default Visual Studio settings.
Tags: mvc
Categories: Presentations
591c1a7e-54c4-4069-8e81-de8703155729|0|.0
Posted by
Joe Wilson
on Sunday, January 17, 2010 3:28 PM
The MVC team loves their rec center, but an evil real estate developer wants to bulldoze it to build a hipster bar named Ruby's. The team has been coding their butts off with MVC 2, but will the new features be enough to save the rec center? Will the cynical real estate developer cackle and complain that it's still not enough? Will the MVC team get areas right? Will the new templated HtmlHelpers strike the right balance of rapid development and fine control? Will ...
[More]
Tags: mvc, web forms, html helpers, data annotations, validation, areas
Categories: Technical
426ef647-caef-49b3-9a88-b7e924819b04|0|.0
Posted by
Joe Wilson
on Friday, January 8, 2010 7:13 PM
I prefer using MVC over Web Forms for ASP.NET development, but the reasons are getting narrower as Web Forms is improving. Here's my "Why should I use MVC" list from a recent presentation:
To get separation of concerns right from the start
To avoid ViewState page bloat
To avoid messy HTML
To avoid messy URLs
But a lot of this is changing in Web Forms with ASP.NET 4.
ViewState Improvements
In previous Web Forms versions, you could disable ViewState for the page with EnableViewS...
[More]
Tags: web forms, mvc
Categories: Technical
8de5d698-598c-4c6f-883a-6323f46f973f|0|.0
Posted by
Joe Wilson
on Wednesday, November 25, 2009 4:33 PM
The problem I ran into a snag testing some code today with Rhino Mocks. I was mocking calls to a repository and inspecting the repository method calls and arguments passed. Everything started off pretty normal with the repository dependency injected into the class under test: // Arrange
var repository = MockRepository.GenerateMock<ICustomerRepository>();
var passenger = new Passenger(repository);
// Act
passenger.CallTheMethodUnderTest(arg1, arg2);
In my Assert section, I...
[More]
Tags: rhino mocks, unit testing
Categories: Technical
b6a8679e-41fb-4fe2-a6a0-f97d1899010c|0|.0
Posted by
Joe Wilson
on Saturday, November 21, 2009 11:18 PM
Thanks to all those who came out for the Denver Visual Studio User Group lab. The slides, labs, and code can be downloaded here. I've also included some cheat-sheets as handouts.
Tags: mvc
Categories: Presentations
39aa0655-72e7-4488-9fda-ac1e33f33fd4|0|.0
Posted by
Joe Wilson
on Monday, November 16, 2009 5:49 PM
I've got a work laptop with a VMware virtual machine. But I wanted to move it to my slightly faster personal rig, with the nicer keyboard, mouse, dual monitors, etc. So I shut down the VM on the work laptop and copied it over to the personal machine. Then I downloaded and installed the VMware Player to the new machine, copied the VM to it, and opened it up. I got a prompt asking if I "moved" or "copied" the VM. I chose "copied". The VM spun for a little while, and then ...
[More]
Tags: vmware
Categories: Technical
b01c9ca5-5c12-43ba-9cdd-cbd25d749c2f|0|.0
Posted by
Joe Wilson
on Wednesday, October 28, 2009 2:02 PM
I installed Windows 7 Ultimate x64 on my machine the other day. Here's where the road was smooth and where I hit some bumps. For reference, this is a Dell Latitude D630 on a docking station. It's maybe 2 years old or so? Smooth Before I started, I added more RAM to go up to 4GB. I had 2GB already, so it wasn't like I was low on RAM, but more RAM = better experience. The laptop has two slots, so it was already full with two, 1GB sticks. Buying the two, 2GB...
[More]
Tags: windows 7
Categories: Technical
22eb22a7-6473-42ec-b2d9-b085aacccc2b|0|.0
Posted by
Joe Wilson
on Thursday, October 15, 2009 12:55 PM
I just started a new project using Typemock Isolator. It's a new tool for me, and since I've mostly used Rhino Mocks, my learning is from the perspective of "how do you do this with Rhino Mocks". These are the differences I see so far. General Typemock Isolator is a commercial product. Rhino Mocks is free and open source. Here's the Typemock pricing. Typemock Isolator can mock just about anything, including not normally mockable things like private meth...
[More]
Tags: typemock, rhino mocks
Categories: Technical
f4d82f2b-24fa-48ef-abc7-b3d9d6725be2|0|.0
Posted by
Joe Wilson
on Saturday, September 19, 2009 2:53 PM
I was proud when I got married, when my kids were born, and when I accomplished stuff in my career. But this may be the topper. My submission to the "blog" of "unnecessary" quotation marks was posted! It's good to be famous, even if it's little "f" famous.
Tags:
Categories: General
c3157ee5-38cb-469f-ac13-3e52b6dcffd9|1|5.0
Posted by
Joe Wilson
on Tuesday, September 15, 2009 9:09 PM
There are plenty of validation frameworks out there. I've worked with NHibernate Validators, Microsoft's Enterprise Application Blocks, and now Data Annotations. They primarily work by adding attributes to the properties in the class you want to validate. How are they different? Not very. The biggest difference between them is their syntax. I guess the Validation Blocks from Microsoft's P&P group have a lot of configuration options, but I haven't needed that ...
[More]
Tags: mvc, validation, dtos, data annotations
Categories: Technical
5346b511-1b6c-4164-9e81-4a2c97469826|0|.0