My talk from ACCU Conference 2017 where I describe a tiny programming language I wrote:
Cell source code: github.com/andybalaam/cell
For a lightning talk at the ACCU Conference I wrote a little story:
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.
In which I argue that mocks are a code smell, and layers lead to increased coupling:
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.
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:
-Wredundant-decls -Wcast-align -Wmissing-declarations -Wmissing-include-dirs -Wswitch-enum -Wswitch-default -Wextra -Wall -Werror -Winvalid-pch -Wredundant-decls -Wmissing-prototypes -Wformat=2 -Wmissing-format-attribute -Wformat-nonliteral
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 by Roger Orr in CVu these flags are highly recommended in GCC 5.2+:
 Orr, Roger “One Definition Rule“, in CVu Volume 27, Issue 5 p16 (editor: Steve Love)