#11 Pressure - Tips from The Clean Coder
Tags: tips, habits, beginners, productivity
Published: 2020-09-20 12:38:13

---
title: #11 Pressure - Tips from The Clean Coder
published: true
description: Some tips from the book The Clean Coder, by Uncle Bob.
tags: #tips #habits #beginners #productivity
//cover_image: https://direct_url_to_image.jpg
---

#####*This is the eleventh article from the series "Tips from The Clean Coder". Here we gathered and summarized the main tips from the eleventh chapter.*

Imagine that you're having an out-of-body experience, observing yourself on an operating table while a surgeon performs open-heart surgery on you. That surgeon is trying to save your life, but time is limited so he is operating under a deadline - a *literal* deadline.

How do you want that doctor to behave? Do you want him to appear calm and collected? Do you want him issuing clear and precise orders to his support staff? Do you want him following his training and adhering to his disciplines?

Or do you want him sweating and swearing? Do you want him blaming management for unrealistic expectations and continuously complaining about the time? Do you want him behaving like a professional or like a typical developer?

![doctor]
(https://media.giphy.com/media/xT5LMUMQjFPHO10g6Y/giphy.gif)

The professional developer is calm and decisive under pressure. As the pressure grows he adheres to his training and disciplines, knowing that they are the best way to meet the deadlines and commitments that are pressing on him.

### Avoiding pressure

The best way to stay calm under pressure is to avoid the situations that cause pressure. That avoidance may not eliminate the pressure completely, but it can go a long way towards minimizing and shortening the high-pressure periods.

![anxiety](https://media.giphy.com/media/lSsVtTm0RY89Fb6m2w/giphy.gif)

#### Commitments

We must make sure that risk is quantified and presented to the business so that they can manage it appropriately. Accepting unrealistic commitments thwarts this goal and does a disservice to both the business and to ourselves.

Professionals will always help the business find a way to achieve their goals. But professionals do not necessarily accept commitments made for them by the business.

![commitment](https://media.giphy.com/media/d5xb4lCxLqyJLtc2jt/giphy.gif)

This is easy to say. But when your business is failing, and your paycheck is delayed because of missed commitments, it's hard not to feel the pressure. But if you have behaved professionally, at least you can hold your head high as you hunt for a new job.

#### Staying clean

We can avoid pressure by keeping our system, our code, and our design as clean as possible. This does not mean that we spend endless hours polishing code. It simply means that we don't tolerate messes. Professionals realize that "quick and dirty" is an oxymoron. **Dirty always means slow!**

#### Crisis discipline

**You know what you believe by observing yourself in a crisis.**

If you follow the discipline of TDD in non-crisis time but abandon it during a crisis, then you don't really trust that TDD is helpful. If you keep your code clean during normal times but make messes in a crisis, then you don't really believe that messes slow you down.

![discipline](https://media.giphy.com/media/mPAcaDTKlybW8/giphy.gif)

Choose disciplines that you feel comfortable following in a crisis. *Then follow them all the time*. Following these disciplines is the best way to avoid getting into a crisis.

### Handling pressure

Forestalling, mitigating, and eliminating pressure is all well and good, but sometimes the pressure comes despite all your best intentions and preventions.

#### Don't panic

Manage your stress. Sleepless nights won't help you get done any faster. Sitting and fretting won't help either. Rushing will only drive you deeper into the hole.

![panic](https://media.giphy.com/media/5qoRdabXeT4GY/giphy.gif)

Instead, slow down. Plot a course to the best possible outcome, and then drive towards that outcome at a reasonable and steady pace.

#### Communicate

Let your team and your superiors know that you are in trouble. Ask them for their input and guidance. Avoid creating surprises. Nothing makes people angrier and less rational than surprises. Surprises multiply the pressure by ten.

#### Get help

Pair! When the heat is on, find an associate who is willing to pair program with you. You'll get done faster, with fewer defects. Your partner will spot things that you miss, will have helpful ideas, and will pick up the slack when you lose focus.

![help](https://media.giphy.com/media/fdzNPgTsrV9ba/giphy.gif)

By the same token, when you see someone else who's under pressure, offer to pair with them.

### Conclusion

The trick to handling pressure is to avoid it when you can, and weather it when you can't. You avoid it by managing commitments, following your disciplines, and keeping clean. You weather it by staying calm, communicating, following your disciplines, and getting help.


#### Next article: [#12 Collaboration](https://dev.to/yurishenrique/12-collaboration-tips-from-the-clean-coder-b6g)

##### Previous article: [#10 Estimation](https://dev.to/yurishenrique/10-estimation-tips-from-the-clean-coder-59kp)