More than half of engineers have considered leaving or left a job because of technical debt.

This is according to Stepsize, a development tool for the healthy codebase, which examines the challenges tech companies face in hiring and retaining developers.

While recruiters, hiring managers, and leaders are focusing on attracting new tech talent, they might be ignoring one of the biggest reasons they are losing them in the first place – codebase health.

Stepsize surveyed more than 200 senior and junior engineers at enterprises, SMEs, and startups around the world to find out how codebase health and technical debt impact hiring and employee retention.

Key findings of the report include:

* 51% of engineers left or considered leaving a job because of technical debt.

* 82% believe that lack of proper development practices affects their job satisfaction.

* 62% consider code quality as an important factor when choosing a new job.

* For 21% of engineers, excessive amounts of technical debt have been the number one reason for changing a job.

* Both junior and senior developers equally consider codebase health to be an important factor when choosing a new job.

More than half of the engineers (51%) have left a company or considered leaving a company due to large amounts of technical debt, and 20% say that technical debt is the primary reason for them to leave the company.

As discovered in The State of Technical Debt 2021 Report, technical debt has a huge impact on developer team morale, causing frustration and hindering innovation.

“Given how much it costs to hire new engineers, companies need to keep their staff turnover as low as possible. And the best way to do that is to carefully manage technical debt to maintain a healthy codebase,” says Alex Omeyer, CEO of Stepsize.

Salary, technical challenges, and remote work opportunities are the three most important factors that engineers pay attention to during their interview process.

Compensation and workplace flexibility is at the top of the list for engineers when they’re looking for a new job. But 62% admit that they also consider code quality as an important factor.

Code health or code quality refers to the characteristics of the code, such as clean, consistent, easy to understand, testable. Engineers often feel pressure to sacrifice code quality to meet deadlines and ship features fast which leads to frustration and decreases team morale.

Unlike salary and remote work opportunities, understanding the state of the codebase and software development practices can be challenging.

Engineers suggest asking the following questions during the interview process:

* What are the complexity metrics, defect metrics, and coding standards of the codebase?

* What does the workflow before deployment look like?

* Do all projects for each tech stack have consistent and identical CI/CD pipelines?

* How is refactoring built into your development process?

* What does the code review process look like?

* Do you dedicate time to fixing technical debt?

* How do you balance building new functionality and resolving technical debt?

* How much time does the team spend on refactoring?

* What processes are set up to ensure the company uses all the modern/latest stack?

When it comes to the job itself, 82% of engineers admit that lack of proper development practices plays a crucial role in their job satisfaction.