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 13
Rarely 8
Sometimes 20
Regularly 23
All the time 10
a Sample size = 74

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# 2 5 67
Java / Scala 2 5 67
Javascript / Typescript 3 5 66
Python 19 6 49
R 48 2 24
SAS 25 3 46
SPSS 25 4 45
SQL 27 3 44
Stata 14 7 53
VBA 9 4 61
a Sample size = 74

Access to programming tools

Show chart Show table
Programming language Yes Don't know No
C++ / C# 0 56 18
Java / Scala 2 54 18
Javascript / Typescript 3 54 17
Python 34 27 13
R 56 12 6
SAS 25 37 12
SPSS 19 45 10
SQL 30 36 8
Stata 12 43 19
VBA 29 36 9
a Sample size = 74

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# 0 0 2
Java / Scala 2 0 2
Javascript / Typescript 2 1 2
Python 19 15 4
R 17 39 9
SAS 8 17 8
SPSS 8 11 14
SQL 12 18 9
Stata 8 4 10
VBA 21 8 1
a Sample size = 74

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 20 53
Data Cleaning 18 38
Data Transfer / Migration 11 23
Data Visualisation 29 38
Quality Assurance 32 35
a Sample size = 74

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 3
Slightly worse 6
No change 12
Slightly better 28
Significantly better 11
a Sample size = 60

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 14
In education 35
In private sector employment 4
In public sector employment 6
Self-taught 8
Other 0
a Sample size = 68

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 11.5 9.8 13.1 21.3 24.6 19.7
I follow a standard directory structure when programming 26.2 4.9 14.8 19.7 24.6 9.8
I follow coding guidelines or style guides when programming 6.6 3.3 9.8 27.9 41.0 11.5
I use a source code version control system e.g. Git 23.0 44.3 9.8 11.5 6.6 4.9
Code my team writes is reviewed by a colleague 4.9 8.2 11.5 21.3 27.9 26.2
I write repetitive elements in my code as functions 11.5 8.2 4.9 29.5 29.5 16.4
I collect my code and supporting material into packages 19.7 42.6 14.8 11.5 9.8 1.6
I unit test my code 50.8 18.0 13.1 8.2 3.3 6.6
I write code to automatically quality assure data 13.1 24.6 23.0 26.2 9.8 3.3
My team open sources its code 31.1 44.3 16.4 4.9 1.6 1.6
a Sample size = 61

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 21.3 31.1 14.8 9.8 11.5 11.5
Data or assumptions registers 31.1 27.9 11.5 14.8 11.5 3.3
Documentation for each function or class 14.8 26.2 23.0 9.8 16.4 9.8
Code comments 4.9 4.9 4.9 1.6 34.4 49.2
Flow charts 9.8 37.7 23.0 23.0 3.3 3.3
README files 14.8 19.7 18.0 24.6 13.1 9.8
Desk notes 21.3 36.1 11.5 11.5 14.8 4.9
a Sample size = 61

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 0
No 27
Don't know what they are 34
a Sample size = 61

Source control platform

The number of users of each source control platform.

Show chart Show table
Version control platform Yes
GitHub 12
GitLab 5
BitBucket 0
AWS CodeCommit 0
Cloud Source Repository (Google Cloud) 0
a Sample size = 61

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 31
Heard of RAP, have not heard of RAP champions 9
Heard of RAP, does not know department champion 25
Heard of RAP champions, no champion in department 0
Knows department RAP champion 9
a Sample size = 74

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 9.3 16.3 4.7 60.5 9.3
I feel confident implementing RAP in my work 20.9 20.9 23.3 25.6 9.3
I think it is important to implement RAP in my work 2.3 4.7 18.6 37.2 37.2
I feel supported to implement RAP in my work 14.0 18.6 44.2 14.0 9.3
I know where to find resources to help me implement RAP 14.0 30.2 18.6 32.6 4.7
I and/or my team are currently implementing RAP 25.6 18.6 23.3 18.6 14.0
a Sample size = 43

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 14
Peer review Basic 33
Team open source code Basic 2
Use open source software Basic 27
Version control Basic 7
Code packages Advanced 7
Continuous integration Advanced 5
Dependency management Advanced 7
Follow code style guidelines Advanced 32
Function documentation Advanced 16
Functions Advanced 28
Unit testing Advanced 6
a Sample size = 61

Basic RAP scores

Show chart Show table
Basic RAP score Count
0 25
1 27
2 13
3 6
4 3
a Sample size = 61

Advanced RAP scores

Show chart Show table
Advanced RAP score Count
0 15
1 17
2 14
3 9
4 3
5 2
7 1
a Sample size = 61