Skip to main content

When Theory Met Practice


CEWT is the Cambridge Exploratory Workshop on Testing, and for its fifth meeting, hosted at Linguamatics, a bunch of local testers gathered to consider a question: Theory Over Practice or Practice Over Theory? 

A couple of months before CEWT #5 it was posed.

For a day during CEWT #5 it was explored.

Immediately after CEWT #5 it was .... still mostly undecided.

But along the way we did at least have a unicycle, some Transformers, an Alien Dance Party, a selection of retro Nokia phones, and Batman. Oh, and Lean Coffee, and a retrospective, and six talks.

First up in the talks Karo Stoltzenburg tested the question. Taking Weinberg and Gause's classic Are Your Lights On? as her guide, she wondered whether there was a problem here and, if so, whose problem it was, how it got to be a problem, and whether or not it was worth solving. Noting the potential for ambiguity in key terms in the question and the Call For Participation, she carefully teased out possible interpretations and asked us to consider ways in which they might be interesting, scenarios in which they might be applicable, and whether we had to choose between theory and practice at all.

Next, Sneha Bhat and me offered the idea that there's really no opposition between theory and practice, except when labels such as theorist or practitioner are in play. We defined theory as "data that we care to keep track of", and suggested that a sensible way to proceed in a task is to start with the data that you think you need to accomplish it. If you have what you need, then theory has provided the answer. If you don't then you need to practice to get more data. Practice can be guided by theory — because practitioners change their actions based on what they know — and so we have a loop: practice generates data, data becomes theory, theory guides practice.

A transition from waterfall to agile processes at a mobile phone company across around 10 years and six device iterations was the topic of Milosz Wasilewsk's experience report. The theory here was that agile would be faster and better, although in ways that management failed to transmit sufficiently clearly to the staff. The reality was that in practice, a working system — at least one that was reliably delivering product on time — got broken, with multiple late and aborted releases. Milosz's observation was that the theory was good, but the practice didn't live up to it. For example, testing approaches didn't really change and there was little appetite for it to change. Understanding the reasons for the difference between theory and practice is complicated by the number of variables which here include the change in volume of production, the change in the size and ethos of the company, and the change in the competitive landscape over the time period.

In his talk, Aleksander Simic tried to identify the triggers that cause him to switch from theory (reflection, research) to practice (interacting with the system under test). He sketched out on the whiteboard how joining a already-running project team had been challenging in multiple ways including new people, new code base, new architecture, new tooling, and a dramatic difference in scale between the test and production environments. With a lot to learn he found himself constantly discovering that what he was seeing wasn't caused by what he thought, for example after running an experiment and finding some anomalous results which he attributed to the product, it turned out that the hardware configuration had been changed. His testing theory was compromised by constraints that he was unaware of. Discovering those constraints forced him to stop testing (practice) and start understanding the constraints (theory).

Alan Wallace presented an analysis of an analogy between professional swimming, testing, and other professions. He introduced the term training to the discussion and enumerated factors of it, such as that it promotes System 1 thinking, that it can prepare the trainee for performance under pressure or in new scenarios, that dedication to it comes from understanding the value of it, and that it builds competence in the relevant activity. Having done this, he tried to compare professions and found that there seem to be those that are biased significantly in favour of training over execution (e.g. astronaut) and those that are not, or that perhaps tend to train during execution (e.g. testing).  He noted that there seem to be few in between.

Finishing us off, Neil Younger reflected on how learning to ride his mountain unicycle had been a mixture of theory and practice, and that reflecting on it has given him ideas about how he might guide others when learning to ride, or to test. He noted how the choice of theory or practice can be dictated by the context: at work he will mostly practice testing, and at home he'll read up on theory, in part through necessities such as availability of hardware, level of interruption, and business needs. He described how initially failing at practice (he took months to learn to mount his unicycle) can be avoided with short cuts from theory (he found a YouTube video suggesting that learners put a house brick behind the wheel) but that he felt this would have deprived him of other learning, such as balancing while stationery. He wondered whether there are short cuts to testing learning and what the trade-offs might be.

This question was picked up in Lean Coffee, where we tried to unravel some of the threads from the day, along with two others:
  • Can we identify testing short cuts?
  • Is thinking practice?
  • Does it make sense to talk about best theories?
I'll write those up in another post.

Comments

Popular posts from this blog

Meet Me Halfway?

  The Association for Software Testing is crowd-sourcing a book,  Navigating the World as a Context-Driven Tester , which aims to provide  responses to common questions and statements about testing from a  context-driven perspective . It's being edited by  Lee Hawkins  who is  posing questions on  Twitter ,   LinkedIn , Mastodon , Slack , and the AST  mailing list  and then collating the replies, focusing on practice over theory. I've decided to  contribute  by answering briefly, and without a lot of editing or crafting, by imagining that I'm speaking to someone in software development who's acting in good faith, cares about their work and mine, but doesn't have much visibility of what testing can be. Perhaps you'd like to join me?   --00-- "Stop answering my questions with questions." Sure, I can do that. In return, please stop asking me questions so open to interpretation that any answ...

Can Code, Can't Code, Is Useful

The Association for Software Testing is crowd-sourcing a book,  Navigating the World as a Context-Driven Tester , which aims to provide  responses to common questions and statements about testing from a  context-driven perspective . It's being edited by  Lee Hawkins  who is  posing questions on  Twitter ,   LinkedIn , Mastodon , Slack , and the AST  mailing list  and then collating the replies, focusing on practice over theory. I've decided to  contribute  by answering briefly, and without a lot of editing or crafting, by imagining that I'm speaking to someone in software development who's acting in good faith, cares about their work and mine, but doesn't have much visibility of what testing can be. Perhaps you'd like to join me?   --00-- "If testers can’t code, they’re of no use to us" My first reaction is to wonder what you expect from your testers. I am immediately interested ...

The Best Programmer Dan Knows

  I was pairing with my friend Vernon at work last week, on a tool I've been developing. He was smiling broadly as I talked him through what I'd done because we've been here before. The tool facilitates a task that's time-consuming, inefficient, error-prone, tiresome, and important to get right. Vern knows that those kinds of factors trigger me to change or build something, and that's why he was struggling not to laugh out loud. He held himself together and asked a bunch of sensible questions about the need, the desired outcome, and the approach I'd taken. Then he mentioned a talk by Daniel Terhorst-North, called The Best Programmer I Know, and said that much of it paralleled what he sees me doing. It was my turn to laugh then, because I am not a good programmer, and I thought he knew that already. What I do accept, though, is that I am focussed on the value that programs can give, and getting some of that value as early as possible. He sent me a link to the ta...

Beginning Sketchnoting

In September 2017 I attended  Ian Johnson 's visual note-taking workshop at  DDD East Anglia . For the rest of the day I made sketchnotes, including during Karo Stoltzenburg 's talk on exploratory testing for developers  (sketch below), and since then I've been doing it on a regular basis. Karo recently asked whether I'd do a Team Eating (the Linguamatics brown bag lunch thing) on sketchnoting. I did, and this post captures some of what I said. Beginning sketchnoting, then. There's two sides to that: I still regard myself as a beginner at it, and today I'll give you some encouragement and some tips based on my experience, to begin sketchnoting for yourselves. I spend an enormous amount of time in situations where I find it helpful to take notes: testing, talking to colleagues about a problem, reading, 1-1 meetings, project meetings, workshops, conferences, and, and, and, and I could go on. I've long been interested in the approaches I've evol...

Not Strictly for the Birds

  One of my chores takes me outside early in the morning and, if I time it right, I get to hear a charming chorus of birdsong from the trees in the gardens down our road, a relaxing layered soundscape of tuneful calls, chatter, and chirrupping. Interestingly, although I can tell from the number and variety of trills that there must be a large number of birds around, they are tricky to spot. I have found that by staring loosely at something, such as the silhouette of a tree's crown against the slowly brightening sky, I see more birds out of the corner of my eye than if I scan to look for them. The reason seems to be that my peripheral vision picks up movement against the wider background that direct inspection can miss. An optometrist I am not, but I do find myself staring at data a great deal, seeking relationships, patterns, or gaps. I idly wondered whether, if I filled my visual field with data, I might be able to exploit my peripheral vision in that quest. I have a wide monito...

ChatGPTesters

The Association for Software Testing is crowd-sourcing a book,  Navigating the World as a Context-Driven Tester , which aims to provide  responses to common questions and statements about testing from a  context-driven perspective . It's being edited by  Lee Hawkins  who is  posing questions on  Twitter ,   LinkedIn , Mastodon , Slack , and the AST  mailing list  and then collating the replies, focusing on practice over theory. I've decided to  contribute  by answering briefly, and without a lot of editing or crafting, by imagining that I'm speaking to someone in software development who's acting in good faith, cares about their work and mine, but doesn't have much visibility of what testing can be. Perhaps you'd like to join me?   --00--  "Why don’t we replace the testers with AI?" We have a good relationship so I feel safe telling you that my instinctive reaction, as a member of the T...

Vanilla Flavour Testing

I have been pairing with a new developer colleague recently. In our last session he asked me "is this normal testing?" saying that he'd never seen anything like it anywhere else that he'd worked. We finished the task we were on and then chatted about his question for a few minutes. This is a short summary of what I said. I would describe myself as context-driven . I don't take the same approach to testing every time, except in a meta way. I try to understand the important questions, who they are important to, and what the constraints on the work are. With that knowledge I look for productive, pragmatic, ways to explore whatever we're looking at to uncover valuable information or find a way to move on. I write test notes as I work in a format that I have found to be useful to me, colleagues, and stakeholders. For me, the notes should clearly state the mission and give a tl;dr summary of the findings and I like them to be public while I'm working not just w...

Build Quality

  The Association for Software Testing is crowd-sourcing a book,  Navigating the World as a Context-Driven Tester , which aims to provide  responses to common questions and statements about testing from a  context-driven perspective . It's being edited by  Lee Hawkins  who is  posing questions on  Twitter ,   LinkedIn , Mastodon , Slack , and the AST  mailing list  and then collating the replies, focusing on practice over theory. I've decided to  contribute  by answering briefly, and without a lot of editing or crafting, by imagining that I'm speaking to someone in software development who's acting in good faith, cares about their work and mine, but doesn't have much visibility of what testing can be. Perhaps you'd like to join me?   --00-- "When the build is green, the product is of sufficient quality to release" An interesting take, and one I wouldn't agree with in gener...

Postman Curlections

My team has been building a new service over the last few months. Until recently all the data it needs has been ingested at startup and our focus has been on the logic that processes the data, architecture, and infrastructure. This week we introduced a couple of new endpoints that enable the creation (through an HTTP POST) and update (PUT) of the fundamental data type (we call it a definition ) that the service operates on. I picked up the task of smoke testing the first implementations. I started out by asking the system under test to show me what it can do by using Postman to submit requests and inspecting the results. It was the kinds of things you'd imagine, including: submit some definitions (of various structure, size, intent, name, identifiers, etc) resubmit the same definitions (identical, sharing keys, with variations, etc) retrieve the submitted definitions (using whatever endpoints exist to show some view of them) compare definitions I submitted fro...

Express, Listen, and Field

Last weekend I participated in the LLandegfan Exploratory Workshop on Testing (LLEWT) 2024, a peer conference in a small parish hall on Anglesey, north Wales. The topic was communication and I shared my sketchnotes and a mind map from the day a few days ago. This post summarises my experience report.  Express, Listen, and Field Just about the most hands-on, practical, and valuable training I have ever done was on assertiveness with a local Cambridge coach, Laura Dain . In it she introduced Express, Listen, and Field (ELF), distilled from her experience across many years in the women’s movement, business, and academia.  ELF: say your key message clearly and calmly, actively listen to the response, and then focus only on what is relevant to your needs. I blogged a little about it back in 2017 and I've been using it ever since. Assertiveness In a previous role, I was the manager of a test team and organised training for the whole ...