Need to write a lot of code? Background music is here to help.

Naveed Rafi
3 min readAug 19, 2020
Sound of concentration.

Now that most of us have been working from, things that could annoy others in a workplace such as chewing gum, playing background music or tapping your feet is no longer a problem. Being a musician and trying to develop my knowledge of data science further, I thought that it would be interesting to analyse the impact of surrounding noise on ones ability to write code.

Luckily, the data set provided StackOverflow in my Udacity course had just what I was looking for. Before I jump into any detail, i’d like to share an overview of this post. It looks at job satisfaction levels seeks to answer 3 fairly broad questions:

1. What impact do sounds have on job satisfaction?

2. Yet another angle at what programming language should you learn?

3. A basic look into what really matters when it comes to job satisfaction?

To answer the above questions I have used a kaggle dataset that can be found here. It contains over 50,000 responses from a stack overflow survey. Each response contains up to 152 answers to questions which range from job satisfaction to parent’s level of education. The associated code can also be found here

What impact do sounds have on job satisfaction?

The short answer to this question is that if writing code is part of your daily job, you are more likely to enjoy it with some kind of back ground music. 🎧

No real surprises there but not all music is equal. One would assume that ambient music would be better than rock but the survey result shows a different outcome.

Comparison of musical preferences of active and inactive developers

Ambient music is bottom of the preference regardless of how much you code, but movie, talk show, radio can be equally key in making sure that your time spend developing brings you satisfaction. Next time you’ve got to roll up your sleeves and dive into tedious work, make sure you have your favourite playlist or podcast ready!

What programming language should you learn?

What really matters when it comes to job satisfaction?

Short answer: Lack of willingness to look for other jobs.

--

--