August 2008
-
:
Practical Testing: 18 - Removing the potential to deadlock
Back in 2004, I wrote a series of articles called “Practical Testing” where I took a piece of complicated multi-threaded code and wrote tests for it. I then rebuild the code from scratch in a test driven development style to … -
:
Latest release of licensed socket server code: 5.2.3
The latest release of The Server Framework is now available. This release includes the following changes. The following changes were made to the libraries. Some whitespace changes to remove incorrect tabs. Admin Library - 5.2.3 Added a … -
:
The life of a stream socket connection
As I mentioned here I’ve recently adjusted how socket callbacks are dispatched in The Server Framework. Once you’ve written a TCP server or client you will find that you spend a lot of time dealing with the lifecycle of the … -
:
Practical Testing: 19 - Removing the duplicate code
The code in the last two articles in the “Practical Testing” series have contained a considerable amount of duplication. This came about for a couple of reasons. Firstly part 17 was a bit rushed and secondly it was useful to … -
:
Documentation bug...
I realised this morning that part of my “The life of a stream socket connection” document about the safe use of server callbacks in my server framework was wrong. I said this: At any time after a connection is established, … -
:
Lock free code is hard
There’s an interesting article over on Dr. Dobb’s about why writing lock free code is so hard. Herb Sutter takes some code from an article that Dr. Dobb’s published a couple of months ago and pulls it apart and points out … -
:
Writing testable code
There’s a nice post by Miško Hevery over on the Google Testing Blog about Writing Testable Code. It pretty much sums up my views on testable code. Go read it! -
:
Practical Testing: 20 - Mind the gap
Back in 2004, I wrote a series of articles called “Practical Testing” where I took a piece of complicated multi-threaded code and wrote tests for it. I then rebuild the code from scratch in a test driven development style to …