Steve Michelotti

A .NET Developer's Toolbox

  Home  |   Contact  |   Syndication    |   Login
  199 Posts | 0 Stories | 1106 Comments | 51 Trackbacks

News

View Steve Michelotti's profile on LinkedIn

profile for Steve Michelotti at Stack Overflow, Q&A for professional and enthusiast programmers




Google My Blog

What I'm Reading:

Shelfari: Book reviews on your book blog

Tag Cloud


Archives

Post Categories

Code

Publications

October 2009 Entries

Since MVC has been released I have observed much confusion about how best to construct view models. Sometimes this confusion is not without good reason since there does not seem to be a ton of information out there on best practice recommendations. Additionally, there is not a “one size fits all” solution that acts as the silver bullet. In this post, I’ll describe a few of the main patterns that have emerged and the pros/cons of each. It is important to note that many of these patterns have emerged ......

I ran into a small issue today when using the FluentHtml Select() HtmlHelper. My original code was not properly setting the value of the selected item in the drop down: <%=this.Select(m => m.Motorcycle.Make).Selected... Make").Options(Model.MakeLi... I kept ending up with no item being selected from the drop down even though I definitely had a vehicle Make populated in my model and my drop down was correctly populated with the collection from the “MakeList” ......

I ran into an interesting IoC issue today that was ultimately resolved by some extremely helpful email assistance by Chad Myers. I’ll post the solution here in the hopes that someone else will find it helpful. Here is the code to set up the example: 1: public interface IFoo 2: { 3: IBar Bar { get; set; } 4: } 5: 6: public class Foo : IFoo 7: { 8: public IBar Bar { get; set; } 9: 10: public Foo(IBar bar) 11: { 12: this.Bar = bar; 13: } 14: } 15: 16: public interface IBar 17: { 18: bool Flag { get; ......

I often get asked what IoC Container I prefer. Short answer: StructureMap. I love the fluent syntax for configuration. Overall, it’s easy to use, has many advanced features, and is very lightweight. I view the learning curve with StructureMap as relatively small. It is one of the longest-lived IoC containers (if not *the* longest) and has a huge adoption rate which means it’s quite mature and not difficult to find code examples online. For example, there is the StructureMap mailing list. Additionally, ......

Thanks to everyone who attended my session today at NoVa Code Camp.  Both the code and PowerPoint slides are available for download.

Download samples for: MVC in the Real World. Check out the readme.txt file in Solution Items and all SQL scripts for creating the databases.


This Saturday (October 10) I’ll be presenting at the NoVa Code CampRegistration is still open.

I will be presenting “MVC in the Real World”.  There are many great sessions on the schedule.  Hope to see you there!


Thanks to everyone who attended my sessions yesterday at Richmond Code Camp. Both the code and PowerPoint slides are available for download. Download samples for: MVC in the Real World. Check out the readme.txt file in Solution Items and all SQL scripts for creating the databases. Download samples for: C# 4.0 New Language Features. I had several questions about some of the tools I was using during the presentations (all of which are free). For the zooming and highlighting, I was using a tool called ......

MVP
I just found out today that I was awarded the MVP designation from Microsoft in the area of ASP.NET. It has been a very busy 2009 for me, speaking at various user groups and code camps including CMAP, CapArea, RockNUG, SoMDNUG, FredNUG, and Richmond Code Camp. I would like to thank all of those user groups for having me present and I look forward to continuing my involvement with all of those user groups and more in the year to come. With .NET 4.0 and the 2010 wave just around the corner, the upcoming ......