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 19
Rarely 12
Sometimes 9
Regularly 7
All the time 3
a Sample size = 50

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# 9 2 39
Java / Scala 4 3 43
Javascript / Typescript 7 4 39
Python 13 3 34
R 23 4 23
SAS 17 4 29
SPSS 24 3 23
SQL 28 2 20
Stata 9 4 37
VBA 24 1 25
a Sample size = 50

Access to programming tools

Show chart Show table
Programming language Yes Don't know No
C++ / C# 9 21 20
Java / Scala 6 24 20
Javascript / Typescript 14 23 13
Python 33 10 7
R 42 5 3
SAS 23 14 13
SPSS 27 15 8
SQL 31 16 3
Stata 19 22 9
VBA 31 16 3
a Sample size = 50

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# 4 5 4
Java / Scala 4 2 2
Javascript / Typescript 10 4 3
Python 23 10 3
R 20 22 1
SAS 10 13 4
SPSS 9 18 6
SQL 7 24 4
Stata 14 5 4
VBA 9 22 2
a Sample size = 50

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 17 24
Data Cleaning 7 18
Data Transfer / Migration 6 13
Data Visualisation 16 23
Quality Assurance 24 15
a Sample size = 50

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 9
Slightly worse 14
No change 7
Slightly better 8
Significantly better 2
a Sample size = 40

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 3
In education 16
In private sector employment 1
In public sector employment 11
Self-taught 10
Other 1
a Sample size = 42

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 0.0 6.5 19.4 19.4 22.6 32.3
I follow a standard directory structure when programming 6.5 3.2 9.7 32.3 38.7 9.7
I follow coding guidelines or style guides when programming 0.0 6.5 12.9 32.3 25.8 22.6
I use a source code version control system e.g. Git 0.0 38.7 9.7 12.9 12.9 25.8
Code my team writes is reviewed by a colleague 0.0 3.2 22.6 29.0 25.8 19.4
I write repetitive elements in my code as functions 0.0 6.5 6.5 32.3 12.9 41.9
I collect my code and supporting material into packages 3.2 22.6 32.3 12.9 12.9 16.1
I unit test my code 6.5 22.6 19.4 16.1 12.9 22.6
I write code to automatically quality assure data 0.0 19.4 6.5 35.5 22.6 16.1
My team open sources its code 0.0 35.5 16.1 25.8 12.9 9.7
a Sample size = 31

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 22.6 22.6 29.0 9.7 9.7 6.5
Data or assumptions registers 6.5 16.1 22.6 22.6 25.8 6.5
Documentation for each function or class 6.5 6.5 22.6 19.4 29.0 16.1
Code comments 0.0 6.5 6.5 0.0 29.0 58.1
Flow charts 0.0 19.4 29.0 35.5 12.9 3.2
README files 3.2 9.7 22.6 16.1 22.6 25.8
Desk notes 16.1 19.4 12.9 35.5 9.7 6.5
a Sample size = 31

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 1
No 26
Don't know what they are 4
a Sample size = 31

Source control platform

The number of users of each source control platform.

Show chart Show table
Version control platform Yes
GitHub 17
GitLab 7
BitBucket 6
AWS CodeCommit 1
Cloud Source Repository (Google Cloud) 1
a Sample size = 31

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 12
Heard of RAP, have not heard of RAP champions 8
Heard of RAP, does not know department champion 9
Heard of RAP champions, no champion in department 1
Knows department RAP champion 14
a Sample size = 50

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 2.6 5.3 2.6 63.2 26.3
I feel confident implementing RAP in my work 5.3 18.4 7.9 55.3 13.2
I think it is important to implement RAP in my work 0.0 15.8 21.1 26.3 36.8
I feel supported to implement RAP in my work 2.6 18.4 23.7 28.9 26.3
I know where to find resources to help me implement RAP 2.6 18.4 23.7 34.2 21.1
I and/or my team are currently implementing RAP 10.5 28.9 15.8 26.3 18.4
a Sample size = 38

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 15
Peer review Basic 14
Team open source code Basic 7
Use open source software Basic 17
Version control Basic 12
Code packages Advanced 9
Continuous integration Advanced 11
Dependency management Advanced 14
Follow code style guidelines Advanced 15
Function documentation Advanced 14
Functions Advanced 17
Unit testing Advanced 11
a Sample size = 31

Basic RAP scores

Show chart Show table
Basic RAP score Count
0 25
1 6
2 6
3 8
4 2
5 3
a Sample size = 31

Advanced RAP scores

Show chart Show table
Advanced RAP score Count
0 7
1 3
2 3
3 7
4 2
5 4
6 2
7 3
a Sample size = 31