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 10
Rarely 3
Sometimes 3
Regularly 11
All the time 5
a Sample size = 32

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# 4 0 28
Java / Scala 4 0 28
Javascript / Typescript 5 0 27
Python 9 0 23
R 17 1 14
SAS 8 1 23
SPSS 18 0 14
SQL 17 0 15
Stata 1 0 31
VBA 7 1 24
a Sample size = 32

Access to programming tools

Show chart Show table
Programming language Yes Don't know No
C++ / C# 3 15 14
Java / Scala 4 13 15
Javascript / Typescript 6 13 13
Python 12 8 12
R 20 3 9
SAS 14 7 11
SPSS 15 7 10
SQL 15 10 7
Stata 4 13 15
VBA 11 11 10
a Sample size = 32

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 3
Java / Scala 3 1 3
Javascript / Typescript 2 4 1
Python 6 6 3
R 7 13 4
SAS 6 8 0
SPSS 3 12 6
SQL 4 11 6
Stata 4 0 1
VBA 5 6 1
a Sample size = 32

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 10 21
Data Cleaning 4 19
Data Transfer / Migration 4 12
Data Visualisation 11 14
Quality Assurance 11 17
a Sample size = 32

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 7
No change 8
Slightly better 7
Significantly better 2
a Sample size = 26

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 4
In education 18
In private sector employment 2
In public sector employment 4
Self-taught 2
Other 0
a Sample size = 30

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

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 31.8 54.5 9.1 0.0 0.0 4.5
Data or assumptions registers 22.7 54.5 9.1 0.0 13.6 0.0
Documentation for each function or class 9.1 27.3 9.1 22.7 22.7 9.1
Code comments 4.5 13.6 0.0 4.5 36.4 40.9
Flow charts 0.0 50.0 31.8 9.1 9.1 0.0
README files 4.5 36.4 18.2 18.2 18.2 4.5
Desk notes 4.5 40.9 13.6 27.3 9.1 4.5
a Sample size = 22

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 13
Don't know what they are 9
a Sample size = 22

Source control platform

The number of users of each source control platform.

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

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 17
Heard of RAP, have not heard of RAP champions 4
Heard of RAP, does not know department champion 5
Heard of RAP champions, no champion in department 1
Knows department RAP champion 3
a Sample size = 32

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 20.0 26.7 6.7 33.3 13.3
I feel confident implementing RAP in my work 26.7 33.3 6.7 26.7 6.7
I think it is important to implement RAP in my work 6.7 13.3 33.3 20.0 26.7
I feel supported to implement RAP in my work 33.3 13.3 20.0 33.3 0.0
I know where to find resources to help me implement RAP 26.7 13.3 26.7 33.3 0.0
I and/or my team are currently implementing RAP 33.3 26.7 6.7 26.7 6.7
a Sample size = 15

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

Basic RAP scores

Show chart Show table
Basic RAP score Count
0 18
1 6
2 2
3 4
4 2
a Sample size = 22

Advanced RAP scores

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