Overthinking, evolutionary psychology, and programming
Tags: productivity, beginners, programming
Published: 2019-01-12 23:28:34

---
title: Overthinking, evolutionary psychology, and programming
published: true
description: 
tags: #productivity #beginners #programming
canonical_url: http://codingmindfully.com/how-your-mind-evolved-to-keep-you-safe-and-why-you-dont-always-feel-that-way/
cover_image: http://codingmindfully.com/wp-content/uploads/2015/05/HandsAndWater_b2.jpg
---

My mind is my most important tool as a programmer. It's the origin of every line of code I write. It's the mechanism by which I understand the world (user requirements, infrastructure, team dynamics - there is literally nothing that I do as a programmer that doesn't work through my mind).

I've realised more and more that, to be a competent programmer, I need to take care of my mind. It's up to me to understand how it works, and why sometimes it doesn't work as efficiently as I'd like. 

One of the biggest problems I face when my mind is out of whack is overthinking. My mind gets busy and cluttered, and I can't see the wood for the trees. Without mental clarity, it gets hard to solve the problem I'm working on. I've spent a bit of time studying the problem. 

I've found the perspective of evolutionary psychology really useful in getting to grips with my own mind, so I'm sharing what I've learned here. 

I first published this article over at my site, [CodingMindfully.com](http://codingmindfully.com/how-your-mind-evolved-to-keep-you-safe-and-why-you-dont-always-feel-that-way/). I'd love to know what you think in the comments below

<h3>As I sit here typing this, I’m contemplating my hands.</h3>
Human hands are pretty amazing. There are 27 bones in each, connected to one another by a sophisticated set of connective tissue, all operated by a carefully collaborating cohort of muscles. The dexterity of a human hand is unmatched in any other animal – a huge reason for our success as a species.

As much as I make my living with my mind, my hands are equally important. They’re letting me type these words, for example. In the past, they’ve helped me set up technical equipment for experiments or IT projects. I’ve typed a LOT of code with these hands. They also let me do a huge variety of other things that do the general job of keeping me alive . Feeding myself. Creating. Crafting tools. Forming the foundation for exercises. Driving. Communicating.

Hands are so perfect at what they do, and allow us to adapt to so many situations, it’s almost as if they were perfectly designed. In fact many people do. <strong><em>But this isn’t that sort of blog</em></strong>!

The best scientific evidence of the last few hundred years clearly shows that we evolved from ancestor species. Evolution is a clean and well-tested way to explain the features of organisms found in nature. If you’d like to argue this, feel free to to skip this article, but it’s a viewpoint I’m happy to subscribe to, and have been for a looooooong time.

In evolutionary terms, a feature (or <em>trait</em>) of an organism that is useful to navigating its environment is an <strong><em>adaptation</em></strong>. Hands are an adaptation shared by a number of species because their utility allows them to do things other species can’t.

Human hands, with their incredibly refined range of motion and control, confer huge advantages to us not shared by other species – such as the ability to craft sophisticated tools.
<h2>Your thinking mind is an adaptation</h2>
Thinking is pretty amazing too. I love being able to think. But it wasn’t until around five years ago that I ever considered just <strong><em>why it is that I think</em></strong>.

That’s when I discovered evolutionary psychology.

According to evolutionary psychology, the mind and its subtleties are <strong><em>adaptations</em></strong> that help us to survive and thrive in our environment. Every feature of your mental world is an adaptation concerned at a basic level with keeping you alive.

The most obvious way that your mind does this is by giving you <strong><em>killer problem solving abilities</em></strong>. You have the superpower to think your way out of (and in to!) tricky situations. You can do this using the power of abstract thought that eludes most other species.

In times gone by, this might have been as simple as figuring out a safe way through a ravine to get to water or food at the other side. 

In more recent times, we’ve applied our ability to think in ever more sophisticated ways – for example, carrying out calculations that allow planes to fly, or figuring out how best to deploy the resources of a team in a company, or planning major construction projects, or attempting to understand the complexity of nature and the human body, or developing the software that powers our favourite websites. All of which further the existence of individuals and the species.

Thinking. Powerful stuff indeed!

The ability to think, when harnessed correctly, is a source of major benefits to humanity. But sometimes our capacity to plan, predict, calculate and create can work against us. Especially when it feels that that’s all we ever do!
<h2>The overthinking mind</h2>
Sometimes, traits that have evolved in one environment can become a little less effective when the environment changes. This is known as maladaptation. In certain circumstances, the thinking mind can behave in a maladaptive manner.

There are two features of our current world that make our mind go into overdrive:
<ol>
 	<li>The type of threat we’re faced with is, for the most part, imaginary. The majority of us live safe lives, where problems like food, shelter and water are mostly solved. Yet our mind still desires to direct its problem solving capacity at something. It preoccupies itself with our day-to-day difficulties, which are usually not life threatening, and directs the full extent of its abilities at them.</li>
 	<li>We’re bombarded with way, way more information than in the past, so our thinking, problem solving mind (which LOVES information) is overstimulated. This constant stimulation means we can magnify the severity of our problems, turning everyday situations into sources of stress and anxiety. We become overwhelmed with excessive thinking. Everything becomes a problem to be solved, or goal to be achieved. This can get pretty tiring!</li>
</ol>
Thinking is just fine. Do lots of it, do it well, do it clearly.

Overthinking, on the other hand, is often a sign of <a href="http://codingmindfully.com/a-programmers-guide-to-stress/">stress</a>. It’s frequently experienced as racing thoughts, worst-case scenarios, living completely inside your head, or negative self-talk (for example, I'm a terrible programmer - often manifesting as <a href="http://codingmindfully.com/how-i-beat-impostor-syndrome/">impostor syndrome</a>).

Frequently, we’re thinking in terms of “should” or “must” or “have to”, putting enormous pressure on ourselves for things to be different from how they are now.

Which is no fun, and gets us nowhere!

Imaginary threats and information overload make us prone to overthinking. Since thinking is designed to solve problems, it can feel like EVERYTHING is a problem!

The mind, which evolved to solve the problem of how to keep us alive – to help us to ensure our safety – is doing anything but! In fact, it can feel like we’re constantly UNSAFE – even when, objectively, we’re perfectly secure!
<h2>The antidote to overthinking</h2>
Since our mind's major goal is our survival, it has a tendency to <strong><em>live in the future</em></strong>, scanning for possible threats to our existence; or indeed to <strong><em>dwell in the past</em></strong>, picking apart hurtful memories in order to learn how not to become involved in similar situations again.

The antidote to a mind that is too consumed with thinking – with the past and the future – is to do something that connects us with the present. This gets us “out of the loop”, disengaging the thinking mind and allowing us to get a few moments of respite.

Thankfully, we have a variety of options to do this. Here are a few:
<ul>
 	<li>Connect with our breathing. A few deep breaths can have a very calming effect.</li>
 	<li>Engage in sensuality (for example, having a bath. Or enjoying the feel of clean sheets. Or the feel of the sun on your skin. Use your imagination).</li>
 	<li>Take the time to really, really listen to a piece of music. Become overwhelmed by it to the point that the mind calms down.</li>
 	<li>Get into nature. Hug a tree, or take a walk in the park, or the wilderness. Gaze at the night sky and ponder the vastness of the universe.</li>
 	<li>Do something creative. Access a different part of your brain.</li>
 	<li>Dance, exercise, yoga – all excellent ways to connect with the body rather than the mind.</li>
 	<li>My favourite way to connect with the present moment! Learning <a href="http://codingmindfully.com/why-this-software-developer-teaches-meditation/">meditation</a> is teaching yourself the skill of connecting with the present. Very useful when your mind is feeling unmanageable!</li>
</ul>
To summarise:
<ul>
 	<li>Your ability to think evolved to keep you safe and alive;</li>
 	<li>Your mind does this by thinking a lot about the past and the future;</li>
 	<li>It’s possible for the mind to get into a state where it’s thinking TOO MUCH about the past and the future – this can be uncomfortable or downright unpleasant;</li>
 	<li>Choosing to connect with the present moment can act as an antidote to overthinking. This can take practice, but there are a number of options, including meditation.</li>
</ul>
&nbsp;

If you visit my site, and sign up for my list, I’ll send you four things completely free:

1. [The Ultimate Guide to Meditation for Programmers](http://www.codingmindfully.com/ultimate-guide)
2. [The Coding Burnout Checklist](http://codingmindfully.com/burnout-checklist/). 
3. [The Impostor Syndrome Flashcard](http://codingmindfully.com/impostor-flashcard)
4. Three guided audio meditations