DEV Community

Cover image for Ego is the enemy: overcoming your own thoughts

Posted on

Ego is the enemy: overcoming your own thoughts

About a month ago I entered the last five months of my college experience. This last semester consists of an internship that has to result in a Bachelor thesis. Repeating 'this project has to turn out right or I might as well not write a thesis at all' has caused me to overthink everything. The moment I noticed this, I realised I needed something to calm me down. There was one book that I had laying around that has always been interesting to me but I didn't finish until now. I'm glad I picked it up and read it all.

Ego is the Enemy by Ryan Holiday is a book about dealing with your own thoughts and self-sabotage during different stages of life: Aspiration, Success and Failure. The advice in this book has helped me with shaping my thought process into something that helpful instead of hurtful. There are a lot of 'nuggets' in this book I really recommend reading it. In this post I'd like to share my favourite advice, which happens to be the advice that helped me the most.


Most of us have goals and, whether they are big or small, we think about them often. We talk about them with people we respect and love. We visualise them and try to experience a bit of the success we think we'll feel when we achieve them. There is nothing wrong with any of that, but it's easy to take this too far. Instead of doing the work we talk about doing the work and confuse it with actual progress. Even when we are working on our goal, our idea of what success looks like slowly steers us into a different direction. It is suddenly about impressing others instead of reaching goals. Solving a big pile of small JIRA tickets instead of solving a bigger bug that will take more time and effort. Over-engineering something a just little, so we can flex instead of writing something that can easily be understood by everyone.

The only way to overcome this is by noticing it yourself. Other people might be indifferent to your actions but you know when you are trying to impress others and slow yourself down. Learning to get out of your own head and step back can help you with actually achieving your goals. If you can redirect your focus from looking for validation to doing the work you need to do, the likelihood of reaching success will be bigger.


Achieving a goal you have wanted to achieve for a while feels amazing. You're finally there. You got the job, you're promoted to senior or you finally launched that product. Is this the end? Is this the start of becoming bigger and better than anyone else? When success gets into your head it can trap you in two ways: complacency or endless ambition.

When you are hired it's done right? You can sit at your desk, type a bit of code and go home afterwards. You have build some CRUD applications before, all you have to do is repeat it. Unfortunately, having done something successfully in the past is not a guarantee you can repeat that success forever. Don't blindly write code without running it because you have written something similar before. It's easier to debug something if you made a small change than when the bug is hidden under 100+ lines of code.

In that case being hired is just the start right? Keep studying. Read about development before work. Don't leave until the last dev does. Code until the middle of the night as soon as you get home. Don't stop until you're at the top. What is the top exactly? CTO? Do you even want to be CTO? A lot of developers realise they don't when they discover that a CTO barely touches code and focusses more on drawing the architecture. Putting in endless hours to reach the top often leads to burn-out. Make sure you define your next step based on what you want.

The author was able to summarise all of this in one sentence: "The only way to manage success is to manage yourself." Goals are our way of defining happiness and fulfilment but as soon as we are 'too good' or must 'grind endlessly' success turns into something meaningless. It's difficult to not fall into complacency or endless ambition. That is why it is hard to stay successful. No matter if you fall for one trap or the other without managing yourself you'll end up failing.


A mistake doesn't need to be big to get to us. Getting notified that your pull request is rejected. Shipping the bug into production. Not recalling something that is considered base knowledge. It can happen to anyone. The way we respond to these events is what will determine wether that mistake is a failure. Being defensive, covering things up or wanting to prove someone wrong can easily lead to behaviour that will hold you back. Most people know that it's important to learn from your mistakes. What not a lot of people realise is that fighting mistakes often leads to more of them.

Wanting to avoid failure often means wanting to make sure other people don't perceive the consequences of our actions as failure. However we can't control the thoughts of others. A lot of times we can't even control the outcome of our work, all we can do is adopt a process optimised for success. Letting go of both external opinions and outcomes we can't control is key to moving on. Take notes, adjust the process where necessary and try again. Being less attached to outcomes often leads to better results because it allows for more focus on the process.

You don't have to do anything wrong to achieve what others perceive as failure. You might receive less than 100 views on that tutorial you worked on for weeks. Your pull request could be rejected because the team decided to move their project in a different direction. That doesn't mean that your tutorial didn't help anyone or your contribution contained unmaintainable code. Not being rewarded for the effort in the way that you or others expect does not mean you should not have taken that action at all. The only failure in that case is letting those things get to you.

Most thoughts and instances of self-sabotage are rooted in insecurities of what we think others think about us. Letting go of those thoughts is the key to happiness and, in the long run, success.

Top comments (7)

rednaks profile image

I'm wondering how this book is different from what stoicism books teach us ? everything you said was deeply thought by stoicus Philosophers like Plato, Aristotle, Epictetus, Seneca and Marcus Aurelius ...

I'm asking just to see if it's worth it to read the book as well.


maniflames profile image

The author of the book is a huge fan of stoic philosophy and history. Besides writing books he runs a youtube channel called daily stoic. The book mostly communicates the things I learned from it, and a lot more, through anecdotes from history and philosophy from mostly stoic philosophers. It is not a book about stoicism but definitely heavily influenced by it. I hope this helps with you decision. Cheers 😁

sandordargo profile image
Sandor Dargo

As @maniflames suggested, Ryan Holiday is one of the most important contemporary philosophers. If you know stoicism well enough, you might not get a lot of new ideas out of this book, but

  • it is written in contemporary English, a bit easier to understand for most
  • it's the second book of his trilogy on - not just Stoic - philosophical questions. He wrote first The Obstacle is the Way and finished the "series" with Stillness is the Key

I enjoyed them all, particularly this last one. If you click on the links, you can read my summaries on them.

Happy reading!

zakwillis profile image

Ultimately, ego and self-sabotage go hand-in-hand. Remind people of what it is to be human but once you do that, the damage is done. The working world is full of saboteurs, backstabbers, and self-preservationists - within this group are a few good people trying to break free.

Ego is the second most important thing we have. It is what says, I can do this for x period of time. It is what stops you taking a job which you know will be crap, and pushes you forwards. Your ego tells you who is playing you up, and tells you when you are wrong.

Self-awareness is first.

kayis profile image

I always talk about removing "ego problems" from my behavior.

What I mean by this are the things I do not because of any logic that naturally leads to a good outcome, but about things I do out of emotions.

For example:

When I was young, I would destroy things when getting angry then I would miss the things afterward.

I would keep things secret I was ashamed of, sometimes because I did something wrong, etc.

I envied people who had things I wanted or would be jealous of the friends of my partners, which I would also keep secret because, in the end, I was ashamed of it. Often the jealousy would send me in some kind of panic mode of being abandoned.

While I didn't think about this in terms of career success, I certainly think it plays into that. If you're able to own your mistakes makes you calmer and more focused. If you can admit that you have no idea what you're doing, you're open to learn and get better.

maniflames profile image

Thanks for the advice!

In this case calming me down was more a 'making sure I don't stun myself with stress'. Taking notes so I can make the best of this internship 😁