Sign in
|
Help
Peter Ritchie's MVP Blog
This is not a life-saving device.
This Blog
Home
Contact
Syndication
RSS for Posts
Atom
RSS for Comments
Go
News
Search
Go
Email Notifications
Go
Archives
August 2009 (1)
July 2009 (1)
May 2009 (1)
April 2009 (1)
March 2009 (3)
January 2009 (3)
November 2008 (6)
October 2008 (2)
September 2008 (2)
August 2008 (8)
July 2008 (8)
June 2008 (5)
May 2008 (8)
April 2008 (1)
March 2008 (4)
February 2008 (6)
January 2008 (4)
December 2007 (4)
November 2007 (1)
October 2007 (4)
September 2007 (2)
August 2007 (3)
July 2007 (2)
June 2007 (4)
May 2007 (5)
April 2007 (2)
March 2007 (4)
February 2007 (3)
January 2007 (1)
November 2006 (2)
October 2006 (5)
September 2006 (6)
August 2006 (2)
July 2006 (7)
March 2006 (1)
Nuggets
.NET 2.0 Breaking Changes
Visual Studio and .NET Framework Feedback
Microsoft Developer Network Forums
Interesting Blogs
Visual Studio Code Analysis Blog
Sara Ford's Blog
Me
Technorati Profile
Tags
.NET 2.0
.NET 3.5
.NET 3.x
.NET Development
AntiPattern
C#
C# 3.0
C++
DDD
Design/Coding Guidance
DevCenterPost
General
Interesting Find
Microsoft
Non-development
OOD
Patterns
Pontification
Resharper
Software Development
Software Development Guidance
Software Development Practices
Visual Studio 2005
Visual Studio 2008
WinForms
Browse by Tags
All Tags
»
C#
(
RSS
)
.NET 2.0
.NET 3.5
.NET 3.x
.NET 4.0
.NET Development
AntiPattern
Asynchronous Programming Model (APM)
C# 3.0
C# 3.0 Breaking Changes
C# 4
C# 4.0
C# Nugget
C++
Code Analysis/FxCop Warning Resolutions
CodeRush Refactor! Pro
Connect Issue
DDD
Definition
Design/Coding Guidance
DevCenterPost
DevTeach
Framework Bugs
ITSWITCH
ITSWITCH Answer
Microsoft
OOD
Patterns
Pontification
Pop Quiz
Product Bugs
Rant
Reader Question
Resharper
Software Development
Software Development Guidance
Software Development Practices
TCP
Visual Studio 2005
Visual Studio 2008
Visual Studio 2008 SP1
Visual Studio 2010
WCF
WinForms
Mon, May 4 2009 21:30
Unit testing WCF data contract serialization.
WCF service define "data contracts" for their interfaces. These contracts are often defined in an XML schema document and used to generated WCF data contract code. This process effectively creates a .NET type that will serialize to a chunk of...
Posted by
PeterRitchie
|
1 comment(s)
Filed under:
C#
,
WCF
Wed, Apr 29 2009 21:14
DataContractSerializer.ReadObject is easily confused.
With WCF services you need to declare contracts and generate contract classes that encapsulate those contracts. Most of the time you can simply let the framework deal with whatever it needs to do to deal with these objects. Sometimes, you...
Posted by
PeterRitchie
|
1 comment(s)
Filed under:
C#
,
.NET 3.5
,
WCF
Mon, Mar 30 2009 23:02
Evolving code over time
Given economics, time constraints, resource limitations, etc.; you can't write all the functionality for a given solution for a single release. Even if you weren't limited by these constraints, you're likely to get changing requirements as...
Posted by
PeterRitchie
|
1 comment(s)
Filed under:
C#
,
.NET Development
,
Software Development
,
Design/Coding Guidance
,
Software Development Practices
,
Software Development Guidance
Thu, Mar 26 2009 11:33
DevTeach 2009 Vancouver
The schedule for DevTeach 2009 Vancouver has been announced ( http://www.devteach.com/ ). There’s lots of great software development sessions from some of the leaders in our industry. If you’re planning on improving yourself, this is the conference...
Posted by
PeterRitchie
|
1 comment(s)
Filed under:
C#
,
.NET Development
,
Software Development
,
Visual Studio 2005
,
.NET 2.0
,
Design/Coding Guidance
,
.NET 3.x
,
Visual Studio 2008
,
C# 3.0
,
.NET 3.5
,
DevTeach
,
DDD
,
Software Development Practices
,
Software Development Guidance
Fri, Nov 21 2008 12:09
Pass-through Constructors
Pass-through constructors is a term I use to describe parameterized constructors that have none of their own logic and simply pass parameters to the base class. For example: public class BaseClass { private String text; public BaseClass( String text)...
Posted by
PeterRitchie
| with
no comments
Filed under:
C#
,
.NET Development
,
Software Development
,
Definition
Tue, Nov 18 2008 11:55
Pontificating Virtual Parameterized Constructors in C#
Tom Hollander recently posted about a change he required to the Enterprise Library for date/time validation. He had to create a new class (rather than modify the Enterprise Library) that derived from another, defective class. One of his complaints was...
Posted by
PeterRitchie
|
2 comment(s)
Filed under:
C#
,
Software Development
,
Pontification
,
Patterns
,
OOD
,
AntiPattern
Wed, Nov 12 2008 10:02
.NET 4.0, Evolving .NET Development
.NET 4.0 is the first release of .NET since 2.0 that evolves .NET for every programmer. .NET 3.0 was largely LINQ and .NET 3.5 was largely new namespaces (like WCF, WWF, etc.) .NET 4.0 evolves the programming and design for any programmer. It offers framework...
Posted by
PeterRitchie
|
4 comment(s)
Filed under:
C#
,
.NET Development
,
Visual Studio 2010
,
.NET 4.0
,
C# 4.0
Tue, Sep 2 2008 13:49
Becoming a Visual Studio Jedi Part 1
Becoming a Visual Studio 2008 (and often Visual Studio 2005) Jedi In much the same grain as James' Resharper Jedi posts, I'm beginning a series of posts on becoming a Visual Studio Jedi. It involves getting the most out of Visual Studio off-the...
Posted by
PeterRitchie
|
7 comment(s)
Filed under:
C#
,
.NET Development
,
Software Development
,
Design/Coding Guidance
,
Visual Studio 2008
,
DevCenterPost
Tue, Aug 26 2008 15:06
Trials and Tribulations of DataGridView, Column Selections, and Sorting
I had to implement some custom sorting in a DataGridView recently. Essentially, the stakeholders wanted full column selection (like Excel) while still having the ability to sort the data based on a particular column. This particular DataGridView is data...
Posted by
PeterRitchie
|
3 comment(s)
Filed under:
C#
,
.NET Development
,
Software Development
,
.NET 3.5
,
Framework Bugs
,
Connect Issue
,
Visual Studio 2008 SP1
Mon, Aug 11 2008 17:34
DataGridViewColumn.Frozen
DataGridViewColumn.Frozen is documented as "When a column is frozen, all the columns to its left (or to its right in right-to-left languages) are frozen as well." Which is nice until you think of the consequences. The consequences being that...
Posted by
PeterRitchie
| with
no comments
Filed under:
C#
,
.NET Development
,
Software Development
,
Design/Coding Guidance
Mon, Jul 28 2008 14:00
ITSWITCH #1: Answer
Last post I detailed some code that may or may not have something wrong in it. If you thought InitializeOne and IntializeTwo are semantically identical (e.g. they differ only by performance), you'd be wrong. If you simply ran the code, you'd...
Posted by
PeterRitchie
| with
no comments
Filed under:
C#
,
.NET Development
,
Software Development
,
.NET 2.0
,
Design/Coding Guidance
,
Pop Quiz
,
ITSWITCH Answer
Fri, Jul 25 2008 13:58
ITSWITCH: #1
A short pop quiz on design/coding in C#...
Posted by
PeterRitchie
|
5 comment(s)
Filed under:
C#
,
.NET Development
,
Software Development
,
.NET 2.0
,
Design/Coding Guidance
,
Pop Quiz
,
ITSWITCH
Tue, Jul 15 2008 9:47
Nested Types
Recently Michael Features blogged about nested types . The title was almost "nested types considered harmful". I don't agree. I don't agree that they're any more harmful than any other C# construct (except goto...). Nested types...
Posted by
PeterRitchie
|
2 comment(s)
Filed under:
C#
,
.NET Development
,
Software Development
,
Design/Coding Guidance
,
Visual Studio 2008
,
C# 3.0
,
.NET 3.5
,
TCP
,
Asynchronous Programming Model (APM)
Wed, Jun 25 2008 20:17
Comparing CodeRush Refactor! Pro and Resharper 4, part 1 or N -- first glance.
Metadata view of code in referenced assemblies This is a big one for me. For whatever reason, Refactor 4 (and prior) completely disables this and sends you to the Object Browser instead. You get metadata view with CodeRush Refactor! Pro. Keyboard layout...
Posted by
PeterRitchie
|
2 comment(s)
Filed under:
C#
,
.NET Development
,
Software Development
,
Software Review
,
Resharper
,
CodeRush Refactor! Pro
Wed, Jun 25 2008 12:21
Entity Framework Petition of Vote of Non Confidence
I had intended to be happy simply being a signatory of ADO .NET Entity Framework Vote of No Confidence. But, there's people suggesting signatories of this petition are wackos or on the fringe. Do yourself a favour and read the petition . Read what...
Posted by
PeterRitchie
|
2 comment(s)
Filed under:
C#
,
.NET Development
,
Software Development
,
Design/Coding Guidance
,
Microsoft
Tue, Jun 10 2008 14:26
Fundamentals of OOD Part 3: Method Cohesion
Single Responsibility Principle (SRP) helps us write more cohesive types and methods. Cohesion is the relatedness of the members of a type to each other and the relatedness parts of a method's code to other parts. Method cohesion Often times a method...
Posted by
PeterRitchie
|
13 comment(s)
Filed under:
C#
,
Software Development
,
Design/Coding Guidance
,
DevCenterPost
,
OOD
Mon, May 26 2008 9:25
Spaces or Tabs?
In this day and age it seems silly to get into a discussion about whether your companies coding guidelines should have a section mandating either spaces or tabs for indents. Tabs are clearly more flexible, but I really don't think it matters at all;...
Posted by
PeterRitchie
|
5 comment(s)
Filed under:
C#
,
.NET Development
,
Design/Coding Guidance
,
Microsoft
Sun, May 11 2008 10:19
RFC: Conditionals on false
Just a small request for comments. Oren prefers if (GetTrueOrFalse() == false ) ...instead of if (!GetTrueOrFalse()) Coming from 18+ years of C/C++ based language programming, I find either equally readable; but, I'm not always the one reading my...
Posted by
PeterRitchie
|
11 comment(s)
Filed under:
C#
,
Reader Question
Thu, May 8 2008 15:01
Fundamentals of OOD, Part 2 - Encapsulation Scope
Let's look at the ubiquitous Person concept. It might seem logical that an application that deals with people should have a Person interface for classes to implement. For example: public interface IPerson { String GivenName { get; set; } String SurName...
Posted by
PeterRitchie
|
3 comment(s)
Filed under:
C#
,
Software Development
,
Design/Coding Guidance
,
DevCenterPost
Thu, May 1 2008 22:50
Fundamentals of Object-Oriented Design (OOD) Part 1
With increased usage of patterns and situationally specific strategies, people sometimes lose sight of the concepts and principles behind these patterns and strategies and fail to follow them when they're not using patterns or strategies. I feel it's...
Posted by
PeterRitchie
|
1 comment(s)
Filed under:
C#
,
Software Development
,
Design/Coding Guidance
,
DevCenterPost
More Posts
Next page »