How Meditation Is Helping Me Become A Better Coder

So over week ago, I decided to try out meditating every day. I keep reading about all the great benefits meditation brings, so it seemed almost a shame not to at least try it out! I started out with the beta Preside Meditation audio clips, and then moved on to Headspace at the suggestion of a friend.


I haven’t been doing much coding for the past few months, as I was working on a different project. Luckily, I’m done with that project, and can once again fully focus on coding! So yesterday was the first time I coded since I started meditating, and wow, what a difference!

When I first started coding, not knowing how to fix a bug would really eat me up inside, and I would take my frustration out on anyone who came near me. It was just so frustrating and stressful not to know the answer!

In contrast, for the past day, I’ve been stuck several times (today worst of all! I’ve been trying to fix a bug for the past 3 hours!), yet, I am strangely calm. I noticed that I’m now able to fix bugs a lot quicker because instead of freaking out and panicking, I simply logically look for the problem and find a solution.

For those of you not familiar with meditation, it helps you work out your “focus muscle”. And in only a week of 10-minute meditation sessions before going to bed every night, I’m already feeling the benefits.

Stay calm and keep coding!

Enjoy the article? Join over 17,500+ Swift developers and enthusiasts who get my weekly updates.

  • Alec Goebel

    Just started headspace and your article inspired me. To return the favor, here are some selections of best advice I got when I started programming years ago.

    Debugging is just removing all the needles from all the haystacks

    Computer Science is 10% science, 20% ingenuity, and 70% getting the ingenuity to work with the science.

    Zen of python: http://stackoverflow.com/questions/228181/zen-of-python

    And the advice I give every first year computer science student: learn your debugging tools now. Learn about unittesting but you don’t NEED to do it right away, just keep it in mind. And lastly, don’t be afraid to take a step back and reevaluate everything you’ve done.

    Good luck, have fun