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

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# 0 3 32
Java / Scala 0 3 32
Javascript / Typescript 5 1 29
Python 8 3 24
R 19 3 13
SAS 3 2 30
SPSS 19 3 13
SQL 22 1 12
Stata 7 3 25
VBA 9 2 24
a Sample size = 35

Access to programming tools

Show chart Show table
Programming language Yes Don't know No
C++ / C# 0 28 7
Java / Scala 2 24 9
Javascript / Typescript 2 24 9
Python 26 5 4
R 29 3 3
SAS 10 17 8
SPSS 28 3 4
SQL 31 3 1
Stata 17 13 5
VBA 25 8 2
a Sample size = 35

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 0
Java / Scala 2 0 0
Javascript / Typescript 0 2 3
Python 20 6 2
R 12 17 2
SAS 10 0 3
SPSS 10 18 1
SQL 11 20 2
Stata 12 5 2
VBA 16 9 0
a Sample size = 35

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 7 25
Data Cleaning 9 19
Data Transfer / Migration 3 15
Data Visualisation 12 17
Quality Assurance 12 21
a Sample size = 35

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 5
Slightly worse 4
No change 7
Slightly better 11
Significantly better 3
a Sample size = 30

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

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 6.2 18.8 15.6 25.0 15.6 18.8
I follow a standard directory structure when programming 21.9 9.4 15.6 21.9 21.9 9.4
I follow coding guidelines or style guides when programming 6.2 12.5 9.4 28.1 31.2 12.5
I use a source code version control system e.g. Git 12.5 43.8 15.6 18.8 6.2 3.1
Code my team writes is reviewed by a colleague 9.4 12.5 18.8 21.9 15.6 21.9
I write repetitive elements in my code as functions 12.5 18.8 9.4 25.0 18.8 15.6
I collect my code and supporting material into packages 18.8 34.4 31.2 12.5 3.1 0.0
I unit test my code 40.6 25.0 12.5 9.4 12.5 0.0
I write code to automatically quality assure data 9.4 31.2 12.5 15.6 25.0 6.2
My team open sources its code 31.2 46.9 9.4 9.4 3.1 0.0
a Sample size = 32

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 15.6 28.1 18.8 12.5 12.5 12.5
Data or assumptions registers 31.2 18.8 9.4 21.9 12.5 6.2
Documentation for each function or class 21.9 21.9 28.1 15.6 9.4 3.1
Code comments 9.4 3.1 3.1 9.4 43.8 31.2
Flow charts 12.5 28.1 25.0 25.0 3.1 6.2
README files 21.9 15.6 18.8 25.0 9.4 9.4
Desk notes 15.6 15.6 9.4 15.6 40.6 3.1
a Sample size = 32

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

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) 0
a Sample size = 32

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

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 6.9 17.2 13.8 48.3 13.8
I feel confident implementing RAP in my work 17.2 27.6 20.7 20.7 13.8
I think it is important to implement RAP in my work 0.0 10.3 20.7 44.8 24.1
I feel supported to implement RAP in my work 3.4 27.6 37.9 24.1 6.9
I know where to find resources to help me implement RAP 10.3 34.5 20.7 27.6 6.9
I and/or my team are currently implementing RAP 6.9 34.5 17.2 24.1 17.2
a Sample size = 29

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

Basic RAP scores

Show chart Show table
Basic RAP score Count
0 15
1 12
2 5
3 1
4 2
a Sample size = 32

Advanced RAP scores

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