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 11
Rarely 4
Sometimes 10
Regularly 7
All the time 6
a Sample size = 38

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# 1 1 36
Java / Scala 0 1 37
Javascript / Typescript 2 2 34
Python 11 2 25
R 25 1 12
SAS 7 1 30
SPSS 16 0 22
SQL 15 1 22
Stata 9 1 28
VBA 10 1 27
a Sample size = 38

Access to programming tools

Show chart Show table
Programming language Yes Don't know No
C++ / C# 1 26 11
Java / Scala 1 25 12
Javascript / Typescript 7 21 10
Python 23 9 6
R 32 3 3
SAS 3 21 14
SPSS 1 21 16
SQL 11 20 7
Stata 11 17 10
VBA 18 14 6
a Sample size = 38

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# 1 0 1
Java / Scala 1 0 0
Javascript / Typescript 6 1 1
Python 15 8 3
R 10 22 3
SAS 1 2 5
SPSS 0 1 15
SQL 3 8 7
Stata 8 3 6
VBA 9 9 1
a Sample size = 38

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 12 22
Data Cleaning 9 22
Data Transfer / Migration 7 9
Data Visualisation 17 16
Quality Assurance 16 16
a Sample size = 38

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 5
No change 6
Slightly better 12
Significantly better 6
a Sample size = 31

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 2
In education 20
In private sector employment 1
In public sector employment 3
Self-taught 4
Other 1
a Sample size = 33

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 11.1 7.4 3.7 14.8 29.6 33.3
I follow a standard directory structure when programming 33.3 3.7 7.4 18.5 33.3 3.7
I follow coding guidelines or style guides when programming 0.0 7.4 18.5 29.6 37.0 7.4
I use a source code version control system e.g. Git 7.4 33.3 29.6 14.8 11.1 3.7
Code my team writes is reviewed by a colleague 0.0 7.4 14.8 33.3 29.6 14.8
I write repetitive elements in my code as functions 3.7 14.8 0.0 48.1 22.2 11.1
I collect my code and supporting material into packages 3.7 40.7 25.9 18.5 11.1 0.0
I unit test my code 33.3 37.0 14.8 11.1 3.7 0.0
I write code to automatically quality assure data 3.7 44.4 11.1 29.6 3.7 7.4
My team open sources its code 11.1 51.9 7.4 22.2 7.4 0.0
a Sample size = 27

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.2 37.0 22.2 3.7 3.7 11.1
Data or assumptions registers 18.5 29.6 18.5 22.2 7.4 3.7
Documentation for each function or class 14.8 33.3 18.5 14.8 14.8 3.7
Code comments 3.7 11.1 7.4 0.0 25.9 51.9
Flow charts 11.1 37.0 25.9 18.5 3.7 3.7
README files 14.8 37.0 7.4 22.2 18.5 0.0
Desk notes 22.2 33.3 14.8 18.5 7.4 3.7
a Sample size = 27

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 8
a Sample size = 27

Source control platform

The number of users of each source control platform.

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

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

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 4.3 8.7 8.7 47.8 30.4
I feel confident implementing RAP in my work 4.3 17.4 21.7 39.1 17.4
I think it is important to implement RAP in my work 8.7 8.7 4.3 34.8 43.5
I feel supported to implement RAP in my work 13.0 13.0 21.7 34.8 17.4
I know where to find resources to help me implement RAP 13.0 26.1 21.7 26.1 13.0
I and/or my team are currently implementing RAP 17.4 26.1 21.7 21.7 13.0
a Sample size = 23

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

Basic RAP scores

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

Advanced RAP scores

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