Tuesday, March 31, 2009

The most important concepts, design pattern, in MVC ASP.NET

It is better to read something about those concepts, otherwise, it will confuse you for a while.

1. MVC design patthern
2. Controller, Action, ViewData, html helpers
3. JQuery
4 StructureMap, Dependency Injection and Inversion of Control

Wednesday, March 25, 2009

Monday, March 23, 2009

Codes example for why use Lambda

Consider this example:
 string person = people.Find(person => person.Contains("Joe"));

versus
 public string FindPerson(string nameContains, List<string> persons)
 
{
     
foreach (string person in persons)
         
if (person.Contains(nameContains))
             
return person;
     
return null;
 
}