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 2
Rarely 2
Sometimes 7
Regularly 12
All the time 4
a Sample size = 27

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# 3 2 22
Java / Scala 3 2 22
Javascript / Typescript 4 1 22
Python 13 0 14
R 18 0 9
SAS 2 2 23
SPSS 4 2 21
SQL 18 1 8
Stata 3 1 23
VBA 12 1 14
a Sample size = 27

Access to programming tools

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

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# 3 1 2
Java / Scala 2 0 3
Javascript / Typescript 1 3 1
Python 8 9 4
R 7 16 2
SAS 4 0 2
SPSS 6 3 1
SQL 4 18 0
Stata 4 0 3
VBA 9 11 1
a Sample size = 27

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 4 23
Data Cleaning 4 20
Data Transfer / Migration 6 13
Data Visualisation 7 20
Quality Assurance 9 13
a Sample size = 27

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 1
Slightly worse 3
No change 3
Slightly better 7
Significantly better 7
a Sample size = 21

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 5
In education 15
In private sector employment 2
In public sector employment 1
Self-taught 3
Other 0
a Sample size = 26

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 12 8 8 48 24
I follow a standard directory structure when programming 8 4 16 8 48 16
I follow coding guidelines or style guides when programming 4 4 12 20 48 12
I use a source code version control system e.g. Git 4 20 8 8 28 32
Code my team writes is reviewed by a colleague 0 8 24 24 28 16
I write repetitive elements in my code as functions 0 8 16 0 44 32
I collect my code and supporting material into packages 0 24 16 36 16 8
I unit test my code 8 16 36 12 16 12
I write code to automatically quality assure data 0 24 32 20 12 12
My team open sources its code 4 52 16 12 12 4
a Sample size = 25

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 20 40 8 28 0 4
Data or assumptions registers 16 20 24 20 12 8
Documentation for each function or class 4 4 24 20 16 32
Code comments 4 0 8 4 20 64
Flow charts 4 28 32 28 8 0
README files 4 8 28 28 20 12
Desk notes 8 20 16 16 24 16
a Sample size = 25

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

Source control platform

The number of users of each source control platform.

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

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

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 7.1 7.1 7.1 57.1 21.4
I feel confident implementing RAP in my work 7.1 21.4 14.3 28.6 28.6
I think it is important to implement RAP in my work 14.3 0.0 7.1 14.3 64.3
I feel supported to implement RAP in my work 14.3 7.1 21.4 28.6 28.6
I know where to find resources to help me implement RAP 7.1 14.3 21.4 21.4 35.7
I and/or my team are currently implementing RAP 28.6 7.1 14.3 7.1 42.9
a Sample size = 14

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

Basic RAP scores

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

Advanced RAP scores

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