Chapter 8. Simplifying Maintenance with AI Onboarding and Explanations
Maintenance is key to ensuring that code is usable and functional long-term. In Chapter 5, we covered one type of maintenance, dealing with bugs and issues found in production. However, simply correcting issues is not sufficient when running in production. You must also be able to do regular maintenance updates on code as dependencies are updated, deprecated, or significantly revised. Additionally, you must be able to quickly respond to security issues that arise.
In this chapter, we’ll look at some ways to simplify maintenance through two main paths with AI: allowing new maintainers to easily get up-to-speed on a new project and leveraging AI explanations of code.
Project Onboarding with AI
One of the most challenging tasks for a project team can be onboarding members to a codebase so they can rapidly contribute or perform maintenance. Traditionally, this onboarding process might consist of guided explanations of code from more experienced team members plus self-study on the part of the new team members. In addition to being imprecise, this approach can require valuable time from team members that could be better spent on other tasks.
Fortunately, AI can help here. As we’ve discussed previously, we can prompt the SDA to provide information about a codebase, such as “Where do we use X?,” “What libraries are used?,” “What does this code do?,” and so forth. These are all examples of ways to explore and learn ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access