Geeks With Blogs
Pete's Weblog The Blog Formerly Known as Fun with WinForms .NET
Why No Dispose Event?
We all know about resource management in .NET (and Windows Form in particular). I'm talking about using, IDisposable, etc. These constructs work well when you own all the objects that you keep references to, as you simply dispose of each of them from your own Dispose method. But what if you have an object that wraps another object (similar to the decorator pattern)? A Decorator must contain a reference to a ConcreteComponent, but what happens when the ConcreteComponent must be Disposed? Surely we ......

Posted On Monday, October 20, 2003 12:32 PM

Syntax Colouring of Posted Code

In case anyone was wondering, I've been using Jeff Key's excellent SnippetCompiler to write all the code in this blog. The big advantage with this approach is that I can just select "Export->Html Page..." and copy-paste the resulting HTML.

Posted On Saturday, October 18, 2003 10:04 AM

Looks like it's the season for talking about exceptions. Brad Abrams discusses them at some length, and now Joel Spolsky does the same (and with almost the exact opposite opinion). I seem to be cursed with the ability to see both sides of this issue. On the one hand, I like being able to throw an exception whenever an impossible condition comes up in running code (you know, when that if-statement you put in "just in case" goes off completely unexpectedly). On the other hand, I hate having to deal ......

Posted On Tuesday, October 14, 2003 1:18 PM

Copyright © Pete Vidler | Powered by: