Skip to main content

Posts

Showing posts from April, 2007

Rico Mariani's Performance Tidbits : Performance Quiz #1 (of a series?)

Recently there was a discussion on one of our internal email aliases in which this problem came up. I though it was an interesting problem so I posed this Quiz to assorted people I work with to see what kinds of things they would say. Considering these three options: Option 1: sw.WriteLine(subject + ": " + message);Option 2: sw.WriteLine("{0}: {1}", subject, message);Option 3: sw.Write(subject);
sw.Write(": ");
sw.WriteLine(message);Answer these questions: Q1. Which of these choices offers the best performance?
Q2: Can you characterize the memory usage of each of these?
Q3: Which would the performance team generally recommend, and why?
Q4: What special factors might alter this recommendation?
Q5: What did you have do assume about "sw" to answer the question? For answers check the link below:Link to Rico Mariani's Performance Tidbits : Performance Quiz #1 (of a series?)

C# LINQ to SQL Chat Dec 12, 2006 - DLINQ - Microsoft O/R Mapper

What is the key difference between ADO.NET Entities and LINQ 2 SQL?A: LINQ to SQL is an ORM over your relational database schema plus some mappings. LINQ to Entities is an ORM over a conceptual object-less model (ERM) that is a mapping over your relational database schema.Source: C# LINQ to SQL Chat Dec 12, 2006 - DLINQ - Microsoft O/R Mapper

Derik Whittaker : Writing Unit Tests, a simple multi-step process to getting started

Derik Whittake describes how to write tests for projects that have "so much existing code".Steps include:Survey your code base.Create an action plan.Execute your action plan.Reflect on what you have accomplished.Start the process over.For more insight into these steps hear over to:Link to Derik Whittaker : Writing Unit Tests, a simple multi-step process to getting started