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 25
Rarely 12
Sometimes 14
Regularly 8
All the time 6
a Sample size = 65

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# 2 1 62
Java / Scala 2 2 61
Javascript / Typescript 4 3 58
Python 11 1 53
R 32 1 32
SAS 8 1 56
SPSS 13 1 51
SQL 10 1 54
Stata 36 4 25
VBA 10 1 54
a Sample size = 65

Access to programming tools

Show chart Show table
Programming language Yes Don't know No
C++ / C# 1 49 15
Java / Scala 3 50 12
Javascript / Typescript 5 49 11
Python 31 28 6
R 48 11 6
SAS 15 39 11
SPSS 16 38 11
SQL 15 43 7
Stata 30 24 11
VBA 34 25 6
a Sample size = 65

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 2
Java / Scala 3 0 2
Javascript / Typescript 2 3 1
Python 25 6 5
R 21 27 5
SAS 10 5 3
SPSS 15 1 12
SQL 9 6 4
Stata 10 20 16
VBA 24 10 0
a Sample size = 65

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 32 30
Data Cleaning 17 22
Data Transfer / Migration 9 7
Data Visualisation 31 27
Quality Assurance 38 19
a Sample size = 65

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 4
Slightly worse 9
No change 8
Slightly better 15
Significantly better 8
a Sample size = 44

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 12
In education 24
In private sector employment 1
In public sector employment 5
Self-taught 7
Other 0
a Sample size = 52

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 15.0 25.0 2.5 15.0 25.0 17.5
I follow a standard directory structure when programming 35.0 12.5 15.0 10.0 20.0 7.5
I follow coding guidelines or style guides when programming 10.0 7.5 10.0 20.0 37.5 15.0
I use a source code version control system e.g. Git 22.5 40.0 12.5 7.5 5.0 12.5
Code my team writes is reviewed by a colleague 7.5 7.5 10.0 25.0 27.5 22.5
I write repetitive elements in my code as functions 12.5 12.5 10.0 12.5 32.5 20.0
I collect my code and supporting material into packages 30.0 37.5 12.5 7.5 5.0 7.5
I unit test my code 57.5 17.5 5.0 10.0 2.5 7.5
I write code to automatically quality assure data 15.0 37.5 15.0 20.0 7.5 5.0
My team open sources its code 27.5 45.0 10.0 10.0 2.5 5.0
a Sample size = 40

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 27.5 22.5 12.5 12.5 17.5 7.5
Data or assumptions registers 22.5 17.5 17.5 17.5 17.5 7.5
Documentation for each function or class 27.5 27.5 22.5 7.5 10.0 5.0
Code comments 7.5 10.0 2.5 10.0 30.0 40.0
Flow charts 17.5 35.0 22.5 20.0 5.0 0.0
README files 20.0 20.0 12.5 25.0 5.0 17.5
Desk notes 30.0 20.0 15.0 15.0 20.0 0.0
a Sample size = 40

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 2
No 20
Don't know what they are 18
a Sample size = 40

Source control platform

The number of users of each source control platform.

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

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

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 15.8 15.8 0.0 57.9 10.5
I feel confident implementing RAP in my work 21.1 15.8 26.3 15.8 21.1
I think it is important to implement RAP in my work 5.3 5.3 10.5 42.1 36.8
I feel supported to implement RAP in my work 10.5 21.1 26.3 15.8 26.3
I know where to find resources to help me implement RAP 26.3 21.1 15.8 21.1 15.8
I and/or my team are currently implementing RAP 26.3 10.5 26.3 21.1 15.8
a Sample size = 19

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 8
Peer review Basic 20
Team open source code Basic 3
Use open source software Basic 17
Version control Basic 7
Code packages Advanced 5
Continuous integration Advanced 4
Dependency management Advanced 5
Follow code style guidelines Advanced 21
Function documentation Advanced 6
Functions Advanced 21
Unit testing Advanced 4
a Sample size = 40

Basic RAP scores

Show chart Show table
Basic RAP score Count
0 35
1 16
2 8
3 2
4 3
5 1
a Sample size = 40

Advanced RAP scores

Show chart Show table
Advanced RAP score Count
0 12
1 9
2 10
3 6
5 1
7 2
a Sample size = 40