Every day resistance to the system

Tomas Malmsten
29 October 2023

I've not talked politics here before, even though I talk politics with pretty much everyone I know. But I think It's time I change that.

I'm going to start with some thoughts on the small things we can do to resist the system of state and capitalism. Stuff that is just nice and kind but also a little building bricks in creating the connections needed to enact real change.

Continue reading →

Frontend testing strategies - The GUI

Tomas Malmsten
10 March 2023

One question that often pops up when talking about TDD is how to test frontend code. Some say just don’t. I don't think that's particularly helpful though. So this article will look at perhaps the most commonly raised objection to TDD in frontend code. How to deal with the GUI.

But first I want to dispel a common misconception about TDD. TDD is not about providing a complete set of regression tests for the application. It's actually not that much about testing, in terms of what testers do, at all. In TDD we use tests to drive the code and design. The actual testing, such as testers care about, is a side effect of this process. Just as regression tests or regression checking is a side effect. This also means that we are allowed to take some shortcuts in terms of coverage to make the code we want to drive with tests testable.

Continue reading →

Software Design is an Exercise in Human Relationships

Tomas Malmsten
6 February 2023

The title is a quote from Kent Beck. I'm still reading that book I keep going on about. The one that's not a book but will become three. Tidy First? (do subscribe and read his words, not mine). Where he states this. Something that should be quite obvious really. But isn't, it seams, to many.

So, what relationships are we talking about? And how is software design an exercise in said relationships?

Continue reading →

A mechanic making preparatory tidying separate from feature changes

Tomas Malmsten
17 January 2023

I'm still reading Kent Beck's new book (not quite a book but something not far off) called Tidy First?. Being a late subscriber and all there is a lot to read. And now I stumbled over a chapter on untangling behaviour changes from tidyings. The idea is, and I agree fully, that we don't want to mix changes in behaviour and changes in structure. But we all now how hard that can be. We start to do some behaviour change just to realise we just made a bunch of small structural changes to allow for the original change.

Then comes the question, how do we untangle the two? Or do we even try? Naturally there are situations where it's worth untangling, just as there are to not bother. But most of the time we'd like to not have to do either.

Continue reading →

The importance of direction

Tomas Malmsten
11 January 2023

I was reading Kent Beck's new book (not quite a book but something not far off) called Tidy First? and a paragraph in in the chapter tl;dr Cohesion caught my attention. Kent Beck writes:

It can be difficult to see how to de-couple elements. Increasing cohesion, on the other hand, is easier to imagine.

Continue reading →