Cognitive
distortions main image

in programming

As developers, we often encounter problems that interfere with our productivity. But we often ignore the bigger picture. Some of these problems are subtle, some are significant. Sometimes you can somehow cope with them, and sometimes, unfortunately, you can’t.

Together they form something of a vicious cycle, and this can lead to long-term loss productivity, bugs and endless frustration.


If we can minimize the impact one or more of these factors, we can break the cycle and neutralize the remainder.

What is it,
cognitive distortions?

What are cognitive distortions. Petrovna Channel

first image

Cognitive distortions

IKEA effect

You overestimate your own decisions, and, as a result, underestimate the decisions of others.

How it manifests itself

Cognitive bias is so called because consumers often prefer to buy goods that they can assemble themselves rather than those assembled by someone else.
We tend to overestimate our own decisions and underestimate the decisions of others. If you've ever worked for a company that used a blunt internal tool instead of a more convenient ready-made solution, you understand what I'm talking about.

Cognitive distortions

Premature optimization

You optimize something long before it is needed.
second image

How it manifests itself

If you add an aerodynamic spoiler to your old car instead of rebuilding the engine, the car won't get any faster.
A great example: writing the most customized and high-performance code for just an experimental project.
third image

Cognitive distortions

Recency bias

Placing higher value on recent events than ones that occurred further in the past.

How it manifests itself

Often this distortion overtakes us when we need a solution to a problem and... oh! We just solved a similar problem! Let's use this same solution because it worked and we remember how!
Do you find yourself using the same working techniques over and over again? If so, you may be looking at different problems from the same angle.

Cognitive distortions

Hyperbolic discounting

You are chasing small immediate benefits and ignoring larger ones that are unavailable now but available in the future.
forth image

How it manifests itself

Have you ever put off writing a test? Have you caught yourself using the arrow keys in Vim? Congratulations, you are experiencing hyperbolic discounting.
The immediate benefit of using something quickly available greatly alleviates the pain of learning the correct syntax to move to the right line. But once you understand how to move faster, the benefits in the future are much greater. As a result, you will save a lot of time.
fifth image

Cognitive distortions

Planning fallacy

Incorrectly calculate the time required to complete a task.

How it manifests itself

One of the distortions that most of us must recognize. Both project managers and product users themselves all tend to set deadlines in which it is impossible to complete what was planned.
This is perfectly expressed in the old aphorism:

The first 90% of finished code takes up the first 90% of development time. The remaining 10% takes up the second 90% of development time.