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
December 2009 (1)
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
»
Software Development
»
.NET Development
(
RSS
)
.NET 2.0
.NET 3.5
.NET 3.x
ALT.NET
AntiPattern
Asynchronous Programming Model (APM)
C#
C# 3.0
C# 3.0 Breaking Changes
CodeRush Refactor! Pro
Connect Issue
DDD
Definition
Design/Coding Guidance
DevCenterPost
DevTeach
Framework Bugs
Interesting Find
ITSWITCH
ITSWITCH Answer
Microsoft
Microsoft Patterns and Practices
OOD
Open Source
Patterns
Poor UI
Pop Quiz
Product Bugs
Resharper
Software Development Guidance
Software Development Practices
TCP
Visual Studio 2005
Visual Studio 2008
Visual Studio 2008 SP1
WinForms
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
Thu, Jan 29 2009 11:10
A Upcoming Pandemic of Domain Anaemia
There's a well-known anti-pattern called the anaemic domain model[1][2]. This anti-pattern basically says domain entities, chronically, have little or no behaviour (remember, object-oriented design is about attributes and behaviour). It should be...
Posted by
PeterRitchie
|
4 comment(s)
Filed under:
.NET Development
,
Software Development
,
Design/Coding Guidance
,
Microsoft
,
Patterns
,
OOD
,
AntiPattern
,
DDD
,
ALT.NET
,
Software Development Practices
,
Software Development Guidance
,
Microsoft Patterns and Practices
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, 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
Mon, Jul 21 2008 15:32
Working with Resharper's External Annotation XML Files
Resharper 4.0 has external annotation XML files that you can create to give Resharper more information about your code. For example, you can tell Resharper that a particular method does not accept a null argument. For example, the following method does...
Posted by
PeterRitchie
|
5 comment(s)
Filed under:
.NET Development
,
Software Development
,
Visual Studio 2008
,
Resharper
Fri, Jul 18 2008 11:46
Drag-copying in Visual Studio Solution Explorer.
NOTE: I've tried this in Visual Studio 2008 (VS2k8), I'm assuming the same thing happens in Visual Studio 2005 (VS2k5). In the process of refactoring, it's *very* common for me to rename a type. This is most easily done by renaming the file...
Posted by
PeterRitchie
|
2 comment(s)
Filed under:
.NET Development
,
Software Development
,
Visual Studio 2008
,
.NET 3.5
,
Product Bugs
,
Poor UI
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, Jul 2 2008 13:15
Sandcastle Source Code Published
The source for the Sandcastle project has been published . This is great news. For more information, see http://www.codeplex.com/Sandcastle/SourceControl/ListDownloadableCommits.aspx .
Posted by
PeterRitchie
| with
no comments
Filed under:
.NET Development
,
Interesting Find
,
Software Development
,
Open Source
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, Apr 29 2008 9:08
Overcoming problems with MethodInfo.Invoke of methods with by-reference value type arguments
I ran into an interesting problem on the Forums recently. Basically, when you use MethodInfo.Invoke to invoke a method with by-reference value type arguments you can't have the invoked method update a variable/argument. The problem is, when you invoke...
Posted by
PeterRitchie
|
5 comment(s)
Filed under:
C#
,
.NET Development
,
Software Development
,
DevCenterPost
Fri, Mar 7 2008 8:48
Single-Entry, Single-Exit, Should It Still Be Applicable In Object-oriented Languages?
Before the modern high-level languages Edsger Dijkstra came up with "Structured Programming". This programming methodology relied on the programmer to form and enforce most of the structure of the program--manually keeping sub-structures and...
Posted by
PeterRitchie
|
32 comment(s)
Filed under:
C#
,
.NET Development
,
Software Development
,
Design/Coding Guidance
Thu, Dec 13 2007 9:42
Dependency Injection
Dependency injection (DI) is a form of inversion of control. There seems to be a tendency in some circles to refer to dependency injection as inversion of control (IoC). Dependency injection is a form of abstraction by removing physical dependencies between...
Posted by
PeterRitchie
|
1 comment(s)
Filed under:
C#
,
.NET Development
,
Software Development
,
Patterns
Sun, Dec 9 2007 16:38
New Warning CS1060 in C# 3 (Visual Studio 2008)
Recompiling C# 2 (Visual Studio 2005) code in C# 3 (Visual Studio 2008), you may incounter a new warning that didn't used to ocur: Warning CS1060: Use of possibly unassigned field 'fieldName'. Struct instance variables are initially unassigned...
Posted by
PeterRitchie
| with
no comments
Filed under:
.NET Development
,
Software Development
,
Visual Studio 2008
,
.NET 3.5
,
C# 3.0 Breaking Changes
Tue, Jun 26 2007 11:36
System.Collections classes are obsolete
Collection classes like ArrayList, SortedList, Stack and Hashtable will shortly be obsoleted (i.e. the ObsoleteAttribute will be applied to them in upcoming .NET Framework builds). You can start to see this in the Silverlight Alpha (i.e. the Obsolete...
Posted by
PeterRitchie
|
4 comment(s)
Filed under:
.NET Development
,
Software Development
,
Microsoft
More Posts
Next page »