A story about magic and how we treat each other

For a lightning talk at the ACCU Conference I wrote a little story:

A story about magic and how we treat each other

It describes one person’s journey towards realising that we need to act to be kind to each other, and not to expect it to happen automatically.

In the tech community, a lot of people want to be kind, but find relating to people hard work, which can mean people are excluded when we stick to familiar groups. I think there was a widespread opinion that proper geeks were so uninterested in relationship stuff that we treated everyone equally by default, but that is clearly untrue given the makeup of many tech communities.

People are being excluded, and we need to be proactive in changing the behaviours that cause this.

Mocks are Bad, Layers are Bad

In which I argue that mocks are a code smell, and layers lead to increased coupling:

Mocks are Bad, Layers are Bad (in ACCU‘s Overload Journal issue 127)

I also suggest some ways to avoid both mocks and layers, including Classical TDD, Selfish Object, Refactor to Functional and, of course, the Unix Philosophy. I work through a code example to demonstrate some of these things.

I also suggest that frameworks and inheritance hierarchies are bad, but the title was getting too long already.

You can also get the PDF of Overload 127.

Best GCC warning flags for compiling C++

A recent discussion on ACCU-general gave people an opportunity to share the warning flags they like to use with g++.

I thought I’d write down the consensus as I understood it, mainly for my own reference:


We were advised by Jonathan Wakely that -Weffc++ is not very useful since it is mostly based on the first edition of the book Effective C++, many of whose recommendations were improved in the second edition, and also apparently GCC doesn’t do a great job of warning about them.

Update: thanks to an article[1] by Roger Orr in CVu these flags are highly recommended in GCC 5.2+:


[1] Orr, Roger “One Definition Rule“, in CVu Volume 27, Issue 5 p16 (editor: Steve Love)