Welcome to Geekdojo Sign in | Join | Help

November 2003 - Posts

My article is now in full CodeProject submission format, and just waiting to be published... Read More
In an earlier post, whilst I was mid-rant about the PDC (well, as close as I get to a rant anyway :), I mentioned that I had a "potentially good idea" that I'd share with everyone "in another post". Well, this is that post... The core of the idea is Read More
[via Sam Gentile] Stan Lippman is a recent new blogger, joining Herb Sutter, of course. Subscribed, as they say... Read More
OK, I confess, I was doing an "ego-Google" at the time, but it has led me to the discover that my blog has a biblical precedent! Apparently the biblical Paul, of letters fame, also had an imaginary friend. The "chapter and verse" quoted was Romans 9:15, Read More
I have just posted the source to this utility script as a .Text story. The link should show up in my "Articles" list. My intention here is to use my blog articles as a staging area, progressively improving the comments until they are fit for wider Read More
Matt Pietrek dishes the dirt on CRITICAL_SECTIONs in another of his excellent "Under the Hood" articles. Read More
[UPDATE: The script debugger for Win9x is avaiable here, whilst the version for WinNT/2000/XP/2003 can be downloaded from here.] Though I've been writing "stand-alone" JScripts (i.e. hosted in WSH rather than IE/IIS) for a longer than I care to remember, Read More
Finally got around to doing the CodeProject article on decorator templates that I promised a while back. Check it out for yourselves here. Read More
With all of these tips flying about, there just had to be a trap to even up things up... If (when using VC++6 at least - I've not checked this with v7.1) you declare a const int in an .IDL file, MIDL will actually generate a #define in the header file, Read More
It's turning into Tips Day... Firstly an old one, which my previous post reminded me of: setting the registry value HKCU\Software\Microsoft\Command Processor\CompletionChar to 9, say, enables completion of file names at the command prompt, using the Read More
I guess I always subconciously knew this was true, but had never really thought about the consequences. First up is a variation of the infamous K&R "Hello world!" example program:#include void DoIt(char* sz) { puts(sz); *sz = 'J'; } Read More
I've known about the NT command shell's FOR command for a while, but have recently found myself using it more and more. You can check out it's features in full with HELP FOR, but my most common usage is analogous to *NIX's find -exec, e.g.: FOR /F Read More
I am part way through reading Martin Fowler's Patterns of Enterprise Application Architecture and can thoroughly recommend it. I'm finding it rather more useful than his previous book, Analysis Patterns, though that's not to say that was not also a good Read More
Everybody else is talking about the PDC, so I thought I'd offer my opinions, for what they're worth. I'm not at the PDC, and in fact have never made it further than a couple of VBITS events at Kensington Olympia. Yesterday I realised that I was never Read More
That's 3 posts in as many days. Perhaps I'll keep this blogging lark up after all... Read More
I have recently been looking to create a set of wrapper classes to hold Win32 resources using "resource allocation is initialization" (RAII) principles. Previously I have constructed such wrappers on an ad hoc basis, which in practice has meant heavy Read More
Many texts refer to the Liskov Substitution Principle (or LSP) which states, rather more elegantly than I am about to, that inheritance should only be used if an instance of the subclass is, to all intents and purposes, an instance of the base class. Read More
Brad Abrams has referred to Rico Mariani's pit of success: The Pit of Success: In sharp contrast to a summit, a peak, or a journey across a desert to find victory through many trials and surprises, we want our customers to simple fall into winning Read More
The most well-known quote about optimization in software development must surely be Knuth's: "Premature optimization is the root of all evil" However, what exactly does he mean by optimization in this case? I suspect that he using the word in a Read More
... from out of town, so I thought I'd tell you a little about myself before I start moving my old posts over. Who? I am Paul Bartlett, and live in Colnbrook (a small village at the end of the runway at London Heathrow) with my wife Rosie and (almost) Read More