Flotsam and Jetsam #105

Complete Martin Harvey’s Multithreading Article Online

Threading in Delphi, or in any other tool for that matter, is difficult.  There are a lot of good resources out there for Delphi developers, but perhaps none better than Martin Harvey’s “Multi-threading: The Delphi Way”.  There is a copy of it here —  http://thaddy.co.uk/threads/ – but sadly it doesn’t include the graphics and the code. 

Well, I was working on the TThread chapter for my new book, and guess what I happened across on my hard drive?  The entire copy of Harvey’s work, including the graphics and the code samples.  I have no idea how I came to have it, but I do.  I thought it would be worth posting in its entirety, so I did:

http://www.nickhodges.com/MultiThreadingInDelphi/ToC.html

It’s all there – graphics, code samples, and text.  I hope I’m not violating any intellectual property rights in posting it.  I certainly am grateful to Mr. Harvey for his work.  If I am doing wrong here, please let me know and I’ll take it down. I’d hate to have to do that, though. 

Otherwise, there it is as a valuable resource for the Delphi community.  I hope it is helpful to someone.

Flotsam and Jetsam #104

  • Stefan chastises me for making another one of my pronouncements on “evil” programming techniques.  I admit to a bit of hyperbole, but it’s not without a point.  The argument against my pronouncements is that the wise and judicious use of these so-called “evil” features or techniques is good.  I don’t agree.  I think that if a “feature” has the ability to be *easily* abused, then it should be avoided.  For instance, some make the argument that there places where the with statement makes sense.  Well, my counter argument to that is if you allow the with statement in a few places, it’s very easy to use it in just a few more places, and then the next thing you know, your code is full of with statements.  It’s a slippery slope that you should never start down.  The same is true for nested procedures.  Sure, there might be places where they “make sense”, but if you allow them in one place, what is to stop a junior programmer from getting the wrong idea and go crazy with them?  This is especially true for features that simply need not be used at all – such as with and nested procedures.  You can write beautiful code without them, so why risk sliding down the slope?  Better to ban their use altogether.  (Cue the “Then why don’t we all just use assembler” comments in 3..2…1….)
  • I’m a big user and proponent of the Spring for Delphi framework. If you are, too, then you might consider donating to the project.  The website now has a PayPal donate button.
  • I recommend that you give a very careful read to Marco’s post about what was going on at the Microsoft BUILD conference last week.  Lots of interesting stuff there for us Delphi developers, both in the Windows and cross-platform realms.
  • Torry.net is for sale.  Hat tip to Olaf Hess in the non-tech group for this piece of information.

Flotsam and Jetsam #103