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
»
Design/Coding Guidance
(
RSS
)
.NET 2.0
.NET 3.5
.NET 3.x
.NET Development
ALT.NET
AntiPattern
Asynchronous Programming Model (APM)
C#
C# 3.0
C# 3.0 Breaking Changes
C++
DDD
DevCenterPost
DevTeach
General
ITSWITCH
ITSWITCH Answer
Kaikaku
Kaizen
Microsoft
Microsoft Patterns and Practices
OOD
Patterns
Pontification
Pop Quiz
Software Development
Software Development Guidance
Software Development Practices
TCP
TDD
Visual Studio 2005
Visual Studio 2008
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
Tue, Jan 27 2009 10:00
House of Cards Design Anti-pattern
I've had this anti-pattern in my head for years. It's an observance of some projects and methodologies that I've witnessed over the years. I believe it's a form of Voodoo Programming , Programming by coincidence , and is often...
Posted by
PeterRitchie
|
14 comment(s)
Filed under:
Software Development
,
Design/Coding Guidance
,
AntiPattern
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
Wed, Aug 20 2008 20:24
Location of unit tests.
I had a short conversation at Alt.Net Canada about the location of unit tests. I personally tend towards a distinct unit test project. But, I deal with mostly commercial, off-the-shelf (COTS) projects where I simply can't ship code like that. I also...
Posted by
PeterRitchie
| with
no comments
Filed under:
General
,
.NET Development
,
Design/Coding Guidance
,
Pontification
,
TDD
Wed, Aug 20 2008 10:14
The winds of change are blowing
The essence of ALT.NET, or at least the essence that people made use of, was that it was a venue for improving one's skills. There has always been an undercurrent of other agendas there; but they never really took root. The problem with the...
Posted by
PeterRitchie
|
2 comment(s)
Filed under:
Software Development
,
Design/Coding Guidance
,
ALT.NET
,
Kaikaku
,
Kaizen
Wed, Aug 13 2008 16:55
Law of Reversibility of Attributes
I've come up with a simple law called Law of Reversability of Attributes. It’s based on the physics law of a similar name. Basically what the law means is that the inverse of a transformation should result in a return to the original state....
Posted by
PeterRitchie
|
7 comment(s)
Filed under:
Software Development
,
Design/Coding Guidance
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 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
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
Thu, Mar 13 2008 10:46
Upcoming C# 3 Guidance From Microsoft
Mircea Trofin has some design guidelines with regard to some C# 3 language additions (that I assume will make it into a revised Framework Design Guidelines of some sort). They more less agree with the guidelines I published in Code Magazine a while ago...
Posted by
PeterRitchie
|
6 comment(s)
Filed under:
.NET Development
,
Design/Coding Guidance
,
C# 3.0
,
.NET 3.5
,
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
Tue, Feb 5 2008 14:38
A Time and Place for Code Comments
I've dealt with more than one person who believes all code comments are bad. The first person I encountered who said that also asked me to explain why a particular algorithm was used instead of another because there were no comments explaining it...
Posted by
PeterRitchie
|
7 comment(s)
Filed under:
C#
,
Software Development
,
Design/Coding Guidance
More Posts
Next page »