Is it a field or a property?

I very much value code reviews, as long time readers can attest.  During these reviews, I have often found myself wondering whether a given line references a field or a property.  When reading isolated portions of code, properties can be easily mistaken for fields.  Player player = new Player(“Someone”);String name = player.Name;player.Age = 22;By looking…

5

Separating Application Logic and Data Presentation layers

I’m a big advocate of separating an application’s logic from it’s user interface.  By keeping the logic separate from the data presentation layer (UI), it becomes easy to swap out either component with minimal impact on the other.  In addition to ease of replacing components, keeping the user interface separate from the application logic avoids…

2

Quick Tip: Serializing an Object Field as an XML Attribute

The addition of the XML Serializer is one of the reasons I really love version 2 of the .NET Compact Framework.  I use the XML Serializer in very nearly every application I write; to save application state, data files, etc.  By default, the XML Serializer will create a child node for every field in a…

1

Quick tip: Filtering input to a TextBox control

Sometimes, it’s the little things that take the longest to work out, so I thought I’d start a “Quick tips” series.  Quick tips are intended to be short and solve a very specific issue.I was talking with Mark Prentice today and we were looking at filtering a TextBox control so that it only accepted numeric characters. …

6

Command Line Debugging Revisited – Part 5: The X Command

In the previous installment, I talked about attaching to running processes using MDbg.  As part of that discussion, I used the X command.  Today, I’d like to spend a little time on X.  The X command is one of those great features of MDbg that I think is worth the price of admission by itself.From…

2

Using the .NET Compact Framework Remote Performance Monitor to Configure Diagnostic Options

Diagnostic, performance and debugging tools are very cool.  The more tools available, the easier it tends to be to find and fix application issues.  With Visual Studio 2005, several handy tools were added.  I use the Remote Registry Editor and Remote File Viewer just about every day.  Version 2 of the .NET Compact Framework added…

2

The Error Log: A New Diagnostic in .NET Compact Framework v2 Service Pack 1

The recent release of Service Pack 1 for the .NET Compact Framework version 2 has added some very useful diagnostic tools.  You may have already read about the .NET Compact Framework Remote Performance Monitor, and have hopefully used it to analyze the performance characteristics of your applications.  Today, I would like to talk about another…

2

Command Line Debugging Revisited – Part 1: Getting started with MDbg and .NET Compact Framework Version 2 Service Pack 1

It’s been a while since I last wrote about using the command line debugger (cordbg) with the .NET Compact Framework.  Quite a bit has changed in the world of .NET Compact Framework command line debugging since that time.With the release, last year, of version 2 of the .NET Framework SDK, a new command line debugger…

16

Using .stat Files with the .NET Compact Framework Remote Performance Monitor

Steven Pratschner recently posted about one of the coolest new features of the Service Pack 1 beta for .NET Compact Framework version 2 — the .NET Compact Framework Remote Performance Monitor.  Along with the real-time view of the .NET Compact Framework performance statistics, the Remote Performance Monitor can also load and display counter data from…


Easier Linked Lists: A real world application of code reviews

Last year, I recommended that everyone read Steve Maguire’s Writing Solid Code.  Today, I was reminded why I made that recommendation.I have been working on a native (C/C++) application recently and decided that my logging code would be best served by a linked list.  During the code review, it was pointed out that I did…

1