Tag Archives: C++

The Quartermaster’s Store

My eyes are dim, I cannot see. I have not brought my specs with me. Mission Impossible? It’s said you can find anything in the Quartermaster’s Store, even impossible things like fairy wings and unicorn tears. So that’s where I … Continue reading

Posted in software | Tagged , | Leave a comment

Visiting Alice

“The time has come,” the Walrus said, “To talk of many things: Of tuples, trees and composites; Of visitors and kings.”1 Welcome “Good morning, everyone, and welcome to the Wonderland Social Club annual treasure hunt. I am the Walrus.” (coo-coo … Continue reading

Posted in software | Tagged , | Leave a comment

The Curate’s Wobbly Desk

The Vicar’s Lodger The story of the curate’s egg is well known [story], but I bet you’ve never heard about the curate’s wobbly desk. When Aubrey Jones was first ordained he was appointed curate to St Michael’s church, Belton Braces. … Continue reading

Posted in software | Tagged , | Leave a comment

Grain Storage MIS: A Failure of Communications

Introduction In the early 1980s I was given full responsibility for a software development project for the first time. A Northumbrian farmer bought, sold and stored grain on behalf of other farmers. The Sunday colour supplements were writing about the … Continue reading

Posted in software | Tagged , | Leave a comment

The Trial of the Reckless Coder

An Arrest Is Made “Joe Coder, I’m arresting you on suspicion of coding without due care and attention, and with reckless disregard for the welfare of other code users.” I had said this many times before, but this time I … Continue reading

Posted in software | Tagged , | Leave a comment

Evolution of the Observer Pattern

Back in the early 1990s four wise men began a voyage of discovery. They were trying to trace the origins of good software design. They crossed great deserts of featureless software and fought through almost impenetrable jungles of code. What … Continue reading

Posted in software | Tagged , | Leave a comment

The Curious Case of the Compile-Time Function

A Crime Has Been Committed 18 months ago I described a version of my Event/Callback library in an Overload article [Bass]. This library is used extensively in my employer’s control systems software. A typical use looks like this: // A … Continue reading

Posted in software | Tagged , | Leave a comment

Implementing the Observer Pattern in C++ – Part 2

In part 1 of this article I presented an Event/Callback library intended to support the Observer pattern and hinted that it had some limitations. The library was based on the following Event class template: template<typename Arg> class Event { public: … Continue reading

Posted in software | Tagged , | Leave a comment

Implementing the Observer Pattern in C++ – Part 1

Introduction The Observer design pattern is described in the “Gang of Four” book [Gamma] as a method of propagating state changes from a Subject to its Observers. The key feature of the pattern is that Observers register with the Subject … Continue reading

Posted in software | Tagged , | Leave a comment

Template Titbit – A Different Perspective

Background Oliver Schoenborn’s article, “Tiny Template Tidbit”, in Overload 47 illustrates some of the wonderful things you can do with templates. I particularly liked the way it described the thought processes Oliver went through when designing some curve-fitting software and … Continue reading

Posted in software | Tagged , | Leave a comment