Coding frequency and tools

Coding frequency

We asked our respondents, “In my current role, I write code to complete my work objectives _____”.

Show chart Show table
Coding frequency Count
Never 44
Rarely 35
Sometimes 52
Regularly 61
All the time 35
a Sample size = 227

Access to and knowledge of programming languages

For each of the most popular programming languages from last year’s CARS data, we asked respondents to answer “yes”, “no” or “I don’t know” for the following statements:

  • I know how to program with this tool to a level suitable for my work
  • This tool is available to use for my work

Knowledge of programming tools

Show chart Show table
Programming language Yes Don't know No
C++ / C# 26 13 188
Java / Scala 19 13 195
Javascript / Typescript 25 14 188
Python 81 4 142
R 119 4 104
SAS 92 8 127
SPSS 92 11 124
SQL 131 5 91
Stata 45 15 167
VBA 88 8 131
a Sample size = 227

Access to programming tools

Show chart Show table
Programming language Yes Don't know No
C++ / C# 33 105 89
Java / Scala 37 112 78
Javascript / Typescript 42 114 71
Python 151 49 27
R 189 22 16
SAS 97 63 67
SPSS 102 59 66
SQL 147 55 25
Stata 72 89 66
VBA 145 57 25
a Sample size = 227

Access and knowledge gaps

We used the above data to calculate the number of respondents who have access but no knowledge, access and knowledge, and knowledge but no access for each programming language.

Show chart Show table
Programming language Access only Access and knowledge Knowledge only
C++ / C# 21 12 14
Java / Scala 26 11 8
Javascript / Typescript 24 18 7
Python 80 71 10
R 81 108 11
SAS 33 64 28
SPSS 53 49 43
SQL 39 108 23
Stata 44 28 17
VBA 64 81 7
a Sample size = 227

What are people using code for?

We asked respondents what data operations they do in their work, and whether they use code to do them.

Show chart Show table
Data operation I do this without coding I do some or all of this by coding
Data Analysis 50 161
Data Cleaning 24 137
Data Transfer / Migration 32 89
Data Visualisation 73 115
Quality Assurance 74 126
a Sample size = 227

Coding capability

We asked respondents a series of questions about whether they feel their coding ability is improving in their current role and where they first learned to code.

Change in coding ability during current role

Respondents who had coding experience outside of their current role were asked whether there has been a change in their coding ability during current employment.

Show chart Show table
Coding ability changes Count
Significantly worse 23
Slightly worse 30
No change 31
Slightly better 56
Significantly better 45
a Sample size = 185

Where respondents have learned to code

Respondents were asked whether they had coding experience outside their current role and, if so, where.

Show chart Show table
First coding experience Count
In current role 28
In education 86
In private sector employment 9
In public sector employment 47
Self-taught 33
Other 1
a Sample size = 207

Coding practices

We asked respondents to report how often they make use of each of the coding practices. Please note that while there are many different coding practices listed below, we understand that not all are proportionate for every coding project.

General coding practices

Show chart Show table
Percent
Question I don't understand this question Never Rarely Sometimes Regularly All the time
I use open source software when programming 4.9 16.4 9.8 19.7 18.0 31.1
I follow a standard directory structure when programming 26.8 6.0 9.8 15.3 28.4 13.7
I follow coding guidelines or style guides when programming 5.5 7.7 8.7 23.0 37.7 17.5
I use a source code version control system e.g. Git 8.7 33.3 11.5 12.6 13.1 20.8
Code my team writes is reviewed by a colleague 2.2 4.4 12.0 23.0 33.3 25.1
I write repetitive elements in my code as functions 5.5 7.1 6.0 24.0 29.5 27.9
I collect my code and supporting material into packages 8.7 33.3 18.0 21.3 12.6 6.0
I unit test my code 25.7 24.6 14.2 14.2 11.5 9.8
I write code to automatically quality assure data 3.8 21.9 20.8 33.3 13.7 6.6
My team open sources its code 12.6 48.1 13.7 13.1 9.3 3.3
a Sample size = 183

Documentation

Show chart Show table
Percent
Question I don't understand this question Never Rarely Sometimes Regularly All the time
Analytical Quality Assurance (AQA) logs 16.9 31.7 14.8 19.1 9.3 8.2
Data or assumptions registers 15.3 25.1 16.4 19.7 14.8 8.7
Documentation for each function or class 10.4 21.3 9.3 26.8 20.8 11.5
Code comments 2.2 3.3 1.6 10.4 31.7 50.8
Flow charts 4.4 26.8 25.1 27.9 12.6 3.3
README files 8.2 18.6 12.6 26.8 19.7 14.2
Desk notes 15.3 16.4 9.3 25.1 26.2 7.7
a Sample size = 183

Reproducible workflow packages

We asked respondents “do you use reproducible workflow packages e.g. drake, make or pymake?”.

Show chart Show table
Use reproducible workflow packages Count
Yes 13
No 108
Don't know what they are 62
a Sample size = 183

Source control platform

The number of users of each source control platform.

Show chart Show table
Version control platform Yes
GitHub 63
GitLab 40
BitBucket 10
AWS CodeCommit 0
Cloud Source Repository (Google Cloud) 4
a Sample size = 183

RAP knowledge and opinions

Knowledge of RAP and RAP champions

We asked our respondents whether they had heard of RAP and what their knowledge is of their own department RAP champion.

Show chart Show table
RAP champion knowledge Count
Have not heard of RAP 63
Heard of RAP, have not heard of RAP champions 41
Heard of RAP, does not know department champion 50
Heard of RAP champions, no champion in department 7
Knows department RAP champion 53
a Sample size = 227

Opinions on RAP

We asked our respondents who had heard of RAP the extent to which they agree with the following statements:

  • “I understand what the key components of the RAP methodology are”
  • “I feel confident implementing RAP in my work”
  • “I think it is important to implement RAP in my work”
  • “I feel supported to implement RAP in my work”
  • “I know where to find resources to help me implement RAP”
  • “I and/or my team are currently implementing RAP”

The figure and table show the percentage of respondents who picked each response option. Percentages are out of a sample of respondents who said they had heard of RAP.

Show chart Show table
Percent
Question Strongly disagree Disagree Neutral Agree Strongly agree
I understand what the key components of the RAP methodology are 5.5 16.5 11.6 50.0 16.5
I feel confident implementing RAP in my work 11.6 28.7 22.0 23.8 14.0
I think it is important to implement RAP in my work 3.0 7.3 21.3 39.0 29.3
I feel supported to implement RAP in my work 9.1 18.3 28.0 30.5 14.0
I know where to find resources to help me implement RAP 11.6 20.7 22.0 34.1 11.6
I and/or my team are currently implementing RAP 15.9 18.9 21.3 30.5 13.4
a Sample size = 164

RAP scores

RAP components

The frequencies for each RAP component below are derived from a series of questions on coding practices (see the coding practices page). These were used to calculate scores for each component (0/1) where respondents answered “regularly” or “all the time” to the relevant questions. The list of RAP components used here is based on the RAP minimum viable product guidance agreed by the RAP champions network.

Show chart Show table
Component Type Count
Documentation Basic 57
Peer review Basic 107
Team open source code Basic 23
Use open source software Basic 90
Version control Basic 62
Code packages Advanced 34
Continuous integration Advanced 34
Dependency management Advanced 46
Follow code style guidelines Advanced 101
Function documentation Advanced 59
Functions Advanced 105
Unit testing Advanced 39
a Sample size = 183

Basic RAP scores

Show chart Show table
Basic RAP score Count
0 81
1 54
2 33
3 27
4 22
5 10
a Sample size = 183

Advanced RAP scores

Show chart Show table
Advanced RAP score Count
0 43
1 37
2 29
3 26
4 17
5 15
6 10
7 6
a Sample size = 183