Department summary: Department for Levelling Up, Housing & Communities (excl. agencies)

How to use this research

Responding to CARS is voluntary. The results presented here are from a self-selecting sample of government analysts. Because respondents are self-selecting, the results we present reflect the views of the analysts who participated.

For more detail, see the data collection page.

Coding frequency and tools

How often analysts are using code at work

We asked respondents “In your current role, how often do you write code to complete your work objectives?”

Show chart Show table
Coding frequency Percent
Never 22.9%
Rarely 14.6%
Sometimes 16.7%
Regularly 31.2%
All the time 14.6%
Sample size = 48

Access to and knowledge of programming languages

Given a list of programming tools, we asked all respondents if the tool was available to use for their work.

Access to tools does not necessarily refer to official policy. Some analysts may have access to tools others cannot access within the same organisation.

Access to coding tools

Show chart Show table
Programming tool Yes No Don't Know
Python 77.1% 2.1% 20.8%
R 95.8% 0% 4.2%
SQL 68.8% 2.1% 29.2%
Matlab 6.2% 27.1% 66.7%
SAS 20.8% 12.5% 66.7%
SPSS 56.2% 2.1% 41.7%
Stata 35.4% 6.2% 58.3%
VBA 47.9% 6.2% 45.8%
Sample size = 48

Given the same list of programming tools, all respondents were asked if they knew how to program with the tool to a level suitable for their work, answering “Yes”, “No” or “Not required for my work”.

Please note that capability in programming languages is self-reported here and was not objectively defined or tested. The statement “not required for my work” was similarly not defined.

Knowledge of coding tools

Show chart Show table
Programming tool Yes No Not required for my work
Python 31.2% 35.4% 33.3%
R 64.6% 20.8% 14.6%
SQL 50% 16.7% 33.3%
Matlab 6.2% 22.9% 70.8%
SAS 10.4% 22.9% 66.7%
SPSS 33.3% 22.9% 43.8%
Stata 18.8% 25% 56.2%
VBA 20.8% 29.2% 50%
Sample size = 48

Access to and knowledge of git

We asked respondents to answer “Yes”, “No” or “Don’t know” for the following questions:

  • Is git available to use in your work?
  • Do you know how to use git to version-control your work?

Please note these outputs include people who do not code at work.

Access to git

Show chart Show table
Response Percent
Yes 64.6%
No 2.1%
I don't know 33.3%
Sample size = 48

Knowledge of git

Show chart Show table
Response Percent
Yes 47.9%
No 39.6%
I don't know 12.5%
Sample size = 48

Coding capability and change

Where respondents first learned to code

Respondents with coding experience outside their current role were asked where they first learned to code. Those analysts who code in their current role but reported no other coding experience, are included as having learned ‘In current role’. Those who reported first learning to code outside of a work or educational environment were categorised as ‘self-taught’ based on free-text responses.

These data only show where people first learned to code. They do not show all the settings in which they had learned to code, to what extent, or how long ago.

Show chart Show table
Where learned Percent
Current employment 21.6%
Education 67.6%
Previous private sector employment 0%
Previous public sector employment 10.8%
Self-taught 0%
Other 0%
Sample size = 37

Change in coding ability during current role

We asked “Has your coding ability changed during your current role?”

This question was only asked of respondents with coding experience outside of their current role. This means analysts who first learned to code in their current role are not included in the data.

Show chart Show table
Ability change Percent
Significantly worse 10.3%
Slightly worse 6.9%
Stayed the same 10.3%
Slightly better 37.9%
Significantly better 34.5%
Sample size = 29

Coding practices

We asked respondents who said they currently use code in their work, how often they carry out various coding practices. For more information on the practices presented below, please read our guidance on Quality Assurance of Code for Analysis and Research

Open sourcing was defined as ‘making code freely available to be modified and redistributed’

Consistency of good coding practices

Show chart Show table
Statement I don't understand this question (%) Never (%) Rarely (%) Sometimes (%) Regularly (%) All the time (%)
Automated data quality assurance 0% 24.3% 18.9% 24.3% 24.3% 8.1%
Code review 0% 2.7% 8.1% 24.3% 32.4% 32.4%
Coding guidelines / Style guides 5.4% 21.6% 8.1% 21.6% 32.4% 10.8%
Functions 5.4% 10.8% 13.5% 16.2% 29.7% 24.3%
Open source own code 21.6% 35.1% 10.8% 16.2% 8.1% 8.1%
Packaging code 10.8% 56.8% 5.4% 13.5% 2.7% 10.8%
Proportionate quality assurance 5.4% 2.7% 2.7% 10.8% 59.5% 18.9%
Quality assurance throughout development 5.4% 10.8% 2.7% 24.3% 43.2% 13.5%
Standard directory structure 18.9% 35.1% 5.4% 16.2% 13.5% 10.8%
Unit testing 37.8% 10.8% 13.5% 13.5% 5.4% 18.9%
Use open source software 2.7% 5.4% 2.7% 16.2% 24.3% 48.6%
Version control 10.8% 35.1% 5.4% 10.8% 13.5% 24.3%
Sample size = 37

Documentation

We asked respondents who reported writing code at work how frequently they write different forms of documentation when programming in their current role.

Embedded documentation is one of the components which make up a RAP minimum viable product. Documentation is important to help others be clear on how to use the product and what the code is intended to do.

Show chart Show table
Statement I don't understand this question (%) Never (%) Rarely (%) Sometimes (%) Regularly (%) All the time (%)
Analytical Quality Assurance (AQA) logs 13.5% 27% 27% 16.2% 16.2% 0%
Code comments 5.4% 5.4% 2.7% 13.5% 27% 45.9%
Data or assumptions registers 13.5% 21.6% 16.2% 18.9% 21.6% 8.1%
Desk notes 16.2% 16.2% 5.4% 27% 16.2% 18.9%
Documentation for each function or class 13.5% 27% 21.6% 13.5% 18.9% 5.4%
Flow charts 5.4% 27% 16.2% 40.5% 10.8% 0%
README files 13.5% 21.6% 16.2% 16.2% 21.6% 10.8%
Sample size = 37

Dependency Management

We asked respondents who reported writing code at work if they manage dependencies for their projects.

We provided examples of tools that may be used for dependency management:

  • Requirements files, e.g. python requirements.txt or R DESCRIPTION files
  • Virtual environments (e.g. venv or renv) or virtual machines
  • Containers e.g. Docker
Show chart Show table
Use dependency management software Percent
Yes 32.4%
No 21.6%
I don't know what dependency management is 45.9%
Sample size = 37

Continuous integration

We asked respondents who reported writing code at work if they use continuous integration.

We provided some examples of continuous integration technologies:

  • GitHub actions
  • Jenkins
  • Travis
Show chart Show table
Use continuous integration Percent
Yes 21.6%
No 29.7%
I don't know what continuous integration is 48.6%
Sample size = 37

Reproducible workflow packages

We asked respondents who reported writing code at work whether they use reproducible workflow packages.

We provided some examples of packages:

  • drake
  • make
  • pymake
  • targets
Show chart Show table
Use reproducible workflow packages Percent
Yes 2.7%
No 45.9%
I don't know what reproducible workflows are 51.4%
Sample size = 37

Reproducible analytical pipelines (RAP)

We asked respondents about their knowledge of and opinions on reproducible analytical pipelines (RAP). RAP refers to the use of practices from software engineering to make analysis more reproducible. These practices build on the advantages of writing analysis as code by ensuring increased quality, trust, efficiency, business continuity and knowledge management.

The RAP champions are a network of analysts across government who promote and support RAP development in their departments. Please contact the analysis standards and pipelines team for any enquiries about RAP or the champions network.

The Analysis Function RAP strategy was released in June 2022 and sets out plans for adopting RAP across government.

Knowledge of RAP

We asked respondents who reported writing code at work, if they had heard of RAP.

Show chart Show table
Knowledge Percent
Yes 94.6%
No 5.4%
Sample size = 37

RAP Champions

We asked respondents who had heard of RAP, if their department has a RAP champion and if they know who it is.

Show chart Show table
Knowledge Percent
Yes, and I am a RAP Champion 2.9%
Yes, and I know who the RAP Champion is 51.4%
Yes, but I don't know who the RAP Champion is 20%
No 0%
I don't know 25.7%
Sample size = 35

Awareness of RAP strategy

We asked respondents who had heard of RAP, if they had heard of the RAP strategy.

Show chart Show table
RAP strategy knowledge Percent
Yes 42.9%
Yes, but I haven't read it 40%
No 17.1%
Sample size = 35

Opinions on RAP

We asked respondents who had heard of RAP whether they agreed with a series of statements.

Show chart Show table
Statement Strongly Disagree (%) Disagree (%) Neutral (%) Agree (%) Strongly Agree (%)
I and/or my team are currently implementing RAP 17.1% 22.9% 17.1% 22.9% 20%
I feel confident implementing RAP in my work 17.1% 14.3% 8.6% 40% 20%
I feel supported to implement RAP in my work 11.4% 2.9% 17.1% 54.3% 14.3%
I know where to find resources to help me implement RAP 8.6% 8.6% 20% 48.6% 14.3%
I or my team are planning on implementing RAP in the next 12 months 8.6% 14.3% 20% 42.9% 14.3%
I think it is important to implement RAP in my work 5.7% 5.7% 14.3% 40% 34.3%
I understand what the key components of the RAP methodology are 8.6% 17.1% 17.1% 42.9% 14.3%
Sample size = 35

RAP scores

In this section we present RAP components and RAP scores.

For each RAP component a percent positive was calculated. Positive responses were recorded where an answer of “regularly” or “all the time” was given. For documentation, a positive response was recorded if both code comments and README files questions received positive responses. For the continuous integration and dependency management components, responses of “yes” were recorded as positive.

“Basic” components are the components which make up the RAP MVP. “Advanced” components are components which help improve reproducibility, but are not considered part of the minimum standard.

RAP components

Show chart Show table
RAP component Type Percentage of analysts who code in their work
Proportionate QA Basic 78.4%
Use open source software Basic 73%
Peer review Basic 64.9%
Version control Basic 37.8%
Documentation Basic 29.7%
Team open source code Basic 16.2%
Functions Advanced 54.1%
Follow code style guidelines Advanced 43.2%
Dependency management Advanced 32.4%
Unit testing Advanced 24.3%
Function documentation Advanced 24.3%
Continuous integration Advanced 21.6%
Code packages Advanced 13.5%
Sample size = 37