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 5
Sometimes 19
Regularly 24
All the time 10
a Sample size = 68

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 7 57
Java / Scala 5 7 56
Javascript / Typescript 5 7 56
Python 23 5 40
R 37 5 26
SAS 15 9 44
SPSS 15 8 45
SQL 35 7 26
Stata 6 8 54
VBA 15 5 48
a Sample size = 68

Access to programming tools

Show chart Show table
Programming language Yes Don't know No
C++ / C# 5 41 22
Java / Scala 1 44 23
Javascript / Typescript 4 44 20
Python 28 26 14
R 47 13 8
SAS 26 30 12
SPSS 20 29 19
SQL 41 21 6
Stata 11 40 17
VBA 27 29 12
a Sample size = 68

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 1 3
Java / Scala 1 0 5
Javascript / Typescript 2 2 3
Python 18 10 13
R 16 31 6
SAS 12 14 1
SPSS 13 7 8
SQL 8 33 2
Stata 9 2 4
VBA 16 11 4
a Sample size = 68

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 54
Data Cleaning 5 44
Data Transfer / Migration 10 19
Data Visualisation 25 30
Quality Assurance 20 36
a Sample size = 68

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 0
Slightly worse 6
No change 5
Slightly better 23
Significantly better 18
a Sample size = 52

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 14
In education 33
In private sector employment 2
In public sector employment 3
Self-taught 11
Other 0
a Sample size = 63

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 10.3 20.7 8.6 13.8 25.9 20.7
I follow a standard directory structure when programming 34.5 6.9 13.8 12.1 31.0 1.7
I follow coding guidelines or style guides when programming 5.2 6.9 17.2 24.1 37.9 8.6
I use a source code version control system e.g. Git 12.1 48.3 10.3 5.2 15.5 8.6
Code my team writes is reviewed by a colleague 3.4 8.6 5.2 32.8 24.1 25.9
I write repetitive elements in my code as functions 5.2 6.9 17.2 24.1 29.3 17.2
I collect my code and supporting material into packages 20.7 41.4 12.1 19.0 6.9 0.0
I unit test my code 39.7 22.4 10.3 10.3 12.1 5.2
I write code to automatically quality assure data 6.9 43.1 10.3 15.5 15.5 8.6
My team open sources its code 24.1 37.9 15.5 12.1 10.3 0.0
a Sample size = 58

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 25.9 43.1 19.0 3.4 6.9 1.7
Data or assumptions registers 32.8 41.4 6.9 15.5 1.7 1.7
Documentation for each function or class 10.3 46.6 15.5 15.5 6.9 5.2
Code comments 1.7 5.2 10.3 5.2 31.0 46.6
Flow charts 5.2 60.3 15.5 17.2 1.7 0.0
README files 8.6 37.9 6.9 27.6 13.8 5.2
Desk notes 10.3 22.4 12.1 20.7 24.1 10.3
a Sample size = 58

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 29
Don't know what they are 28
a Sample size = 58

Source control platform

The number of users of each source control platform.

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

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

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 9.7 19.4 16.1 41.9 12.9
I feel confident implementing RAP in my work 12.9 35.5 16.1 29.0 6.5
I think it is important to implement RAP in my work 3.2 6.5 6.5 41.9 41.9
I feel supported to implement RAP in my work 3.2 12.9 51.6 19.4 12.9
I know where to find resources to help me implement RAP 6.5 25.8 29.0 25.8 12.9
I and/or my team are currently implementing RAP 12.9 32.3 19.4 19.4 16.1
a Sample size = 31

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 10
Peer review Basic 29
Team open source code Basic 6
Use open source software Basic 27
Version control Basic 14
Code packages Advanced 4
Continuous integration Advanced 8
Dependency management Advanced 7
Follow code style guidelines Advanced 27
Function documentation Advanced 7
Functions Advanced 27
Unit testing Advanced 10
a Sample size = 58

Basic RAP scores

Show chart Show table
Basic RAP score Count
0 27
1 16
2 12
3 7
4 5
5 1
a Sample size = 58

Advanced RAP scores

Show chart Show table
Advanced RAP score Count
0 15
1 19
2 13
3 6
4 1
5 2
6 1
7 1
a Sample size = 58