Quantcast
Channel: NET Progress
Browsing latest articles
Browse All 25 View Live

Image may be NSFW.
Clik here to view.

Readability in Validation

My favourite pattern for validation code is to have one method per validation rule. I think it makes it easier to read and manage the rules.For instance, I like to be able to write something like...

View Article



Image may be NSFW.
Clik here to view.

Resolving Extension Methods

Paul Stovell (author of SyncLINQ) has pointed out another issue with Extension Methods. As he writes:The problem is the methods are *resolved* at compile time.Suppose you had this:void DoStuff(this...

View Article

Image may be NSFW.
Clik here to view.

Better Property Change Notification

aka Automatic INotifyPropertyChangedSome time ago I developed a new way to do property change notification. It consists of code which can automatically figure out which property has changed, without...

View Article

Image may be NSFW.
Clik here to view.

Extension Methods - Feedback to Microsoft

If you've been following the disussions about extension methods in this blog, you might be interested to know that I've submitted the issue to Microsoft's feedback site. Jump over there and vote for...

View Article

Image may be NSFW.
Clik here to view.

Enhanced Automatic Properties

Recently there's been a lot of blog posts discussing things people would like to see in the next version of C#. Here's my addition to the wish-list:"Automatic properties that let me supply a method...

View Article


Image may be NSFW.
Clik here to view.

Summary of C# vNext Ideas in this Blog

Here's a summary of the ideas I've suggested in this blog, for future versions of C#:Fix the versioning issues with extension methodsConsider "extension interfaces" to provide mixin-like behaviourAlso,...

View Article

Image may be NSFW.
Clik here to view.

Only 4 New Features in C# vNext?

I've always admired the effort that Microsoft put into the design of C#. It's difficult to find the right balance between power and flexibility, and on the whole I think they've done an excellent...

View Article

Image may be NSFW.
Clik here to view.

Another reason why architects should write code

Johanna Rothman explains why architects should write code. I completely agree. Not only does hands-on involvement reduce risks on the project, it also reduces embarassment when talking to your kids ;-)...

View Article


Image may be NSFW.
Clik here to view.

POCO LINQ Update

Here is my long-promised near-POCO solution for LINQ to SQL.As planned, it is deliberately not 100% pure POCO, but it does implement these key goals:Entity classes are simple enough to be hand-written...

View Article


Image may be NSFW.
Clik here to view.

Software Development Meme

I've been tagged by Andrew, in a software development meme that started way back here.How old were you when you started programming?I was exactly 13. My parents bought me my first computer for my 13th...

View Article

Image may be NSFW.
Clik here to view.

A Practical Step in the Stored Proc Debate

I've taken a practical step in the long-running debate for and against stored procs.I've logged a formal suggestion with Microsoft asking them to correct their erroneous advice on the subject. :-)This...

View Article

Image may be NSFW.
Clik here to view.

Syntactic Noise sample in C#

Martin Fowler wrote an interesting post on syntactic noise in internal DSLs.I thought it would be interesting to compare the Java versions (there are two in his post) with a concise C# version. Here is...

View Article

Image may be NSFW.
Clik here to view.

Visual Studio Performance with Slow Laptop Drives

As Scott Guthrie wrote, hard drive speed makes a big difference to the performance of Visual Studio.So what can you do if, like me, you are using a laptop and so can't upgrade to a faster hard-drive?...

View Article


Image may be NSFW.
Clik here to view.

How eBoostr Works

I'm using eBoostr to speed up compile times in Visual Studio.My only complaint with the product was the lack of documentation on what it caches and when. You can view the list of all the files that it...

View Article

Image may be NSFW.
Clik here to view.

Presenting at Christchurch Code Camp 2008

I'm presenting at the Christchurch Code Camp on 1 November.I'm presenting on LINQ-to-SQL and also on my open source project, ActiveSharp. If you were coming to a presentation on either of those topics,...

View Article


Image may be NSFW.
Clik here to view.

Future of LINQ to SQL

Yesterday, I did a presentation on LINQ to SQL.  At about the time I was talking about how great it was, Microsoft was announcing that LINQ to SQL will not be their recommended solution in .NET 4!...

View Article

Image may be NSFW.
Clik here to view.

LINQ to SQL Presentation

Here is a copy of the presentation I have at the 2008 Christchurch Code Camp. (zipped ppt)One of the key points of the presentation was to cover what LINQ to SQL includes, both out-of-the-box, and with...

View Article


Image may be NSFW.
Clik here to view.

Hosting a window from one process inside another

Every time this topic comes up, I seem to have lost my bookmarks on it. So, here's a blog entry so I won't lose them again...Under Windows it is possible to visually "dock" the main window of one...

View Article

Image may be NSFW.
Clik here to view.

What's up with P&P?

What's up with the interface between Microsoft's Patterns and Practices group (P&P) and the wider community?P&P are writing a new version of their guidance for architecture on the Microsoft...

View Article

Image may be NSFW.
Clik here to view.

Things I'd like to see in the Entity Framework

With the announcement that the Entity Framework (aka EF or LINQ to Entities) will become the favoured Microsoft ORM, many people have blogged about how important it will be for EF to achieve better...

View Article

Image may be NSFW.
Clik here to view.

Fix the Cross Functional Button on Toshiba Portege M200

I recently bought a second-hand Toshiba M200 tablet PC. It's great!I just had one problem, the little 4-way button, which looks like a mini joystick and is technically known as the "Cross Functional...

View Article


Image may be NSFW.
Clik here to view.

Exporting High-Res Graphics from Excel

I've recently been battling with technology, trying to save some Excel charts as high-res (900 dpi) files.Here's the technique I finally came up with.  (It also works for PowerPoint slides).:1. Save...

View Article


Image may be NSFW.
Clik here to view.

Debugging IEnumerable

I often find enumerables difficult to inspect in the debugger. Here's a trick I just discovered.Given:IEnumerable foo = ...you can inspect it more easily by first writing this in the Immediate...

View Article

Image may be NSFW.
Clik here to view.

Memory Leaks in Managed Code

(This is a repost of an old article I wrote in early 2006, before I started this blog)When writing a Window Forms application, it's useful to display the current memory usage in the "About" box. It...

View Article

Image may be NSFW.
Clik here to view.

This blog -- taking a break

Prompted, in part, by my annoyance at Google dropping the FTP support this blog relies on, but mostly by a lack of time, I won't be doing any work on this blog for the foreseeable future.Commenting on...

View Article

Browsing latest articles
Browse All 25 View Live




Latest Images