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 8
Rarely 9
Sometimes 11
Regularly 17
All the time 7
a Sample size = 52

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# 5 5 42
Java / Scala 3 4 45
Javascript / Typescript 3 4 45
Python 16 2 34
R 32 2 18
SAS 8 2 42
SPSS 24 2 26
SQL 31 1 20
Stata 11 4 37
VBA 20 3 29
a Sample size = 52

Access to programming tools

Show chart Show table
Programming language Yes Don't know No
C++ / C# 3 33 16
Java / Scala 3 35 14
Javascript / Typescript 4 34 14
Python 25 21 6
R 49 3 0
SAS 3 33 16
SPSS 20 24 8
SQL 35 16 1
Stata 13 29 10
VBA 37 13 2
a Sample size = 52

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# 2 1 4
Java / Scala 2 1 2
Javascript / Typescript 2 2 1
Python 15 10 6
R 17 32 0
SAS 2 1 7
SPSS 5 15 9
SQL 8 27 4
Stata 9 4 7
VBA 18 19 1
a Sample size = 52

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 9 40
Data Cleaning 6 33
Data Transfer / Migration 6 15
Data Visualisation 18 27
Quality Assurance 19 27
a Sample size = 52

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 2
Slightly worse 6
No change 7
Slightly better 17
Significantly better 11
a Sample size = 43

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

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 9.1 15.9 18.2 20.5 29.5 6.8
I follow a standard directory structure when programming 36.4 6.8 13.6 11.4 22.7 9.1
I follow coding guidelines or style guides when programming 6.8 11.4 9.1 25.0 36.4 11.4
I use a source code version control system e.g. Git 13.6 43.2 22.7 15.9 4.5 0.0
Code my team writes is reviewed by a colleague 2.3 2.3 18.2 27.3 18.2 31.8
I write repetitive elements in my code as functions 6.8 13.6 15.9 31.8 20.5 11.4
I collect my code and supporting material into packages 18.2 54.5 6.8 11.4 9.1 0.0
I unit test my code 38.6 25.0 9.1 11.4 13.6 2.3
I write code to automatically quality assure data 11.4 22.7 18.2 27.3 15.9 4.5
My team open sources its code 15.9 34.1 29.5 11.4 4.5 4.5
a Sample size = 44

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 11.4 27.3 20.5 13.6 22.7 4.5
Data or assumptions registers 27.3 25.0 11.4 13.6 15.9 6.8
Documentation for each function or class 18.2 15.9 13.6 22.7 22.7 6.8
Code comments 2.3 4.5 2.3 6.8 31.8 52.3
Flow charts 9.1 36.4 13.6 25.0 13.6 2.3
README files 18.2 25.0 13.6 18.2 13.6 11.4
Desk notes 4.5 9.1 13.6 25.0 25.0 22.7
a Sample size = 44

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 20
Don't know what they are 24
a Sample size = 44

Source control platform

The number of users of each source control platform.

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

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 13
Heard of RAP, have not heard of RAP champions 11
Heard of RAP, does not know department champion 3
Heard of RAP champions, no champion in department 0
Knows department RAP champion 24
a Sample size = 52

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 10.3 12.8 17.9 33.3 25.6
I feel confident implementing RAP in my work 20.5 15.4 25.6 28.2 10.3
I think it is important to implement RAP in my work 0.0 7.7 28.2 38.5 25.6
I feel supported to implement RAP in my work 7.7 10.3 35.9 28.2 17.9
I know where to find resources to help me implement RAP 7.7 17.9 15.4 25.6 33.3
I and/or my team are currently implementing RAP 15.4 23.1 10.3 25.6 25.6
a Sample size = 39

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 11
Peer review Basic 22
Team open source code Basic 4
Use open source software Basic 16
Version control Basic 2
Code packages Advanced 4
Continuous integration Advanced 1
Dependency management Advanced 5
Follow code style guidelines Advanced 21
Function documentation Advanced 13
Functions Advanced 14
Unit testing Advanced 7
a Sample size = 44

Basic RAP scores

Show chart Show table
Basic RAP score Count
0 19
1 19
2 9
3 3
4 1
5 1
a Sample size = 44

Advanced RAP scores

Show chart Show table
Advanced RAP score Count
0 11
1 16
2 9
3 2
4 5
5 1
a Sample size = 44