Tuesday, March 21, 2006

Monday, March 20, 2006

foreach vs for

Evidence:Quote from: Effective C#: 50 Specific Ways to Improve Your C# , By Bill WagnerThe C# foreach statement is more than just a variation of the do, while, or for loops. It generates the best iteration code for any collection you have. Its definition is tied to the collection interfaces in the .NET Framework, and the C# compiler generates the best code for the particular type of collection. When you iterate collections, use foreach instead of other looping constructs.

MSDN Web site states: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenetchapt05.asp
Additional investigations by Brad Abrams: http://blogs.msdn.com/brada/archive/2004/04/29/123105.aspx

Use foreach unless you have a very good reason not to.

Friday, March 17, 2006

New certification schema from Microsoft

Changes in certification schema:
http://www.microsoft.com/learning/mcp/default.asp http://www.microsoft.com/learning/mcp/newgen/

Library guidelines from MS


Yar's blog

Book to check out


This book teaches developers the best practices for designing system frameworks and reusable libraries for use with the Microsoft .NET Framework and WinFX. This book focuses on the design issues that directly affect the programmability of a framework, specifically its publicly accessible APIs. This book can improve the work of any .NET developer producing code that other developers will use. An added benefit is a collection of annotations to the guidelines by various members of the Microsoft .NET Framework and WinFX teams, which provide a lively discussion of the motives behind the guidelines, along with examples of good reasons for breaking the guidelines.