Skip to main content

The Habit Loop

"Habits are powerful, but delicate. They can emerge outside our consciousness, or can be deliberately designed. They often occur without our permission, but can be reshaped by fiddling with their parts. They shape our lives far more than we realize— they are so strong, in fact, that they cause our brains to cling to them at the exclusion of all else, including common sense.

Duhigg, Charles (2012-04-05). The Power of Habit: Why We Do What We Do, and How to Change

Now I know I am a creature of habit (like we all are) but after some reading about them  was surprised by how strong they can become and how easily our actions can become habits.

Scientists say that habit occur due to our brain constantly trying to save effort. If you think about this you will see that it is a good thing. Can you imagine if 'simple' things such as crossing the road were not a habit? It would require a lot of Brain power and mental effort every time we crossed the road. By the time you walked to work you could be mentally drained and really not ready for a days work.When you cross the road you probably do something like this:

1) Stop on the pavement/Sidewalk
2) Look left and right to check for oncoming vehicles
3) When it is safe to do so cross the road.

Now we can break habits into what is called the Habit Loop. The loop consists of 3 things; Cue, Routine and Reward. In the above example these would breakdown as follows:

Cue: I need to cross the road
Routine: Stop before the road, look left and right to check for traffic then cross the road
Reward: I have crossed the road safely and am alive.

Now with habits there is a basic truth: When habits emerge the brain stops participating in decision making. This amazes me - so when I think I am actually making a decision I'm not?! My brain is trying to save its resources for more important things that it may need to do. I may of made what I thought was decision but it was in fact a habit - my brain was saving processing power. Now if the habit was good then great but not all habits are. Good habits would be things like:
- Cleaning your teeth
- Having a shower
- Exercise

The following could be seen as bad habits:
- Smoking
- Taking drugs
- Eating junk food everyday

Now you may think that you have to wait for the reward of the habit loop, so for example someone who loves exercise will have to do a workout before they have the reward of ' feeling good'. However an experiment was undertaken by Wolfram Schultz in which a monkey would pull a lever when particular shapes appeared on a computer screen. If the monkey touched the lever when the shape appeared it would be rewarded with some blackberry Juice. At first the monkey squirmed in the chair that he was sat in. However once he started to pull the lever and got the taste of the Blackberry juice he was transfixed, waiting for the shape to appear on the screen so he could get some more juice. As the monkey did this more and more Schultz found that the monkey started to anticipate the Blackberry juice before he has pulled the lever. The graphs of the monkeys brain activity showed that it was at its highest when the shape appeared when previously it was after he had received the Blackberry Juice.  This helps to explain habits like smoking. The smoker has anticipate the nicotine hit before they have even lit the cigarette. Other researchers found that once a monkey had formed a habit they found it hard to break. Monkeys that had not built up a habit were distracted by researchers opening the door of the lab or putting food in the corner, these monkeys found it easy to break the habit of pulling the lever. However the monkeys that had built up a habit could not do this and this helps to explain why habits are so powerful; they create neurological cravings. Most of the time, these cravings emerge so gradually that we’re not really aware they exist, so we’re often blind to their influence.

Now think about habits from a testing perspective; When we test and think we are making a decision about how to test something maybe it is just a habit that has formed. Could we try and break this habit and therefore discover a different way to approach an aspect of our testing. Can we change our habit routines to get the same reward? Are there any bad habits we pick up as testers? What are our good habits?

I hope that you have found this interesting and in my next post I will look at the problems with habits and start to answer some of these questions.


Comments

Popular posts from this blog

How to deal with pauses and timeouts in specflow

So this blogpost is in response to the weekly Specflow blog posts and challenges that have been written by Gojko Adzic. This weeks challenge was how would you rewrite or rephrase the below scenario: Given a user registers successfully When the account page reloads And the user waits 2 seconds Then the account page displays "Account approved" My initial though was something like this: Given a user registers successfully  When the account page reloads   Then the account page is displayed within a satisfactory time period     And the account page displays "Account Approved" Now the problem with this scenario is what defines a satisfactory time? You could add it as a comment or in a scenario outline but over time the time a user waits could change and if this is updated in the code behind but the scenario outline or comments are not, then what the test does and what is described do not match - this would potentially cause issues in the future. My next ide

Testing and Mindfulness

How aware are you? Do you live in the here and now or is your mind always somewhere else? This blog post is about Mindfulness. Mindfulness is a simple meditation and is defined as (According to Wikipedia): "The intentional, accepting and non-judgemental focus of one's attention on the emotions, thoughts and sensations occurring in the present moment" Now Mindfulness has become more popular in the west in recent years as it has shown to have benefits for people who are suffering from Depression and Anxiety. It has been around for a while and is often thought to of originated from Buddhism and some people believe it started thousands of years ago. Now modern life is hectic and I’m sure we all have lots of things going on in our lives that keep our Brains busy and trying to focus on one thing at a time can be a challenge. I can't remember the number of times I've been doing something and my mind is somewhere else entirely. Mindfulness helps you focus on

Building a test strategy for a new team

Teams, we have all been on them. Some are good and some are bad. Some we never wanted to leave and others we probably couldn't wait to leave. Now most of the time (well in my experience anyway) you tend to get put into a team that already exists. Maybe you are a new hire or maybe you have asked to change to a different product team.  When you do this, more than likely there will already be a testing strategy in place. It may be that you adapt it and change it in any way you see fit to improve the testing. But imagine if everyone on the team was new? How would you decide your testing strategy? This post will go through some useful things you can do to help a new team develop a test strategy. Table of Contents ๐Ÿ“ˆ What is a Test Strategy? ๐Ÿค” Where should I start? ๐ŸŽฏ Understand the company and their goals ๐Ÿ’ช Play to the teams strengths ๐Ÿ‘️‍๐Ÿ—จ️ Understand what quality looks like ๐Ÿ“ Understand Scope ๐Ÿงช Understand the type of tests you need ๐Ÿ“Š Measure your success ๐Ÿค Collaborate ๐Ÿ“ Summar