Intro:
In the world of creating software, new tools that use AI to help programmers have started a big change. These tools make it easier and faster for people to get their work done. Among these, GitHub’s Copilot stands out, promising a significant boost in coding speed. Recent findings suggest that developers can write code 55% faster with the aid of Copilot 1. But beyond sheer output, there lies a crucial question: does the quality and maintainability of this AI-generated code measure up to the meticulous standards of human-crafted code? This blog delves into the heart of this inquiry, unpacking the key findings of a research by GitClear .
Primary Insights:
- Embracing the trend: Junior Developers 20% More Likely to Use Copilot Over Experienced Peers
GitHub's own data suggests that Junior Developers use Copilot around 20% more than experienced developers. Writing a lot of code can make it simpler for new programmers to quickly and easily pick up the rules of a new programming language. It’s true that writing more also means facing various situations and problems, which can improve their ability to solve problems and think critically. Good code isn’t just about making code that works; it’s also about making code that is easy to read, keep up, use again, and grow. These parts of coding need more understanding and decision-making. But, they are important and shouldn’t be ignored.
- Reversal Reality: Over 7% of Changes Reversed Within Fortnight, Doubling Since 2021
Code churns are changes that were either incomplete or erroneous when the author initially wrote, committed, and pushed them to the company’s git repo. The time frame under study is 2 weeks ( size of a spirint). usually within two weeks. This often happens because the original code was not finished properly or had mistakes. This would influence the DORA Change failure Rate. Which means the greater the risk of mistakes being deployed to production.
- Code base Longevity: One-Keystroke Temptation
When you change parts of an already existing system of code, it’s common to see code being moved around. This process supports the use of code again. The advantage of reusing code is that it’s code that has been tested and is known to work well when actually used. Developers tend to enjoy adding new features more than figuring out if existing code can be used again. Because of this, code that’s just copied and pasted is often used for longer than it should be. Using AI Assistants makes it more tempting to quickly create new code with just one keystroke rather than taking the time to review and reuse existing code.
- Graceful Code: Study Finds 10% More Changes Within Two Weeks
“Code Provenance” checks how long code lasts before it’s changed or removed. Recently, there’s been a 10% increase in code being changed within two weeks of being written. On the other hand, code that’s been around for more than a month is being changed 24% less often this year compared to last year.
Closing Remarks:
Crafting quality code goes beyond functionality; it’s about enhancing its maintainability. To achieve this with AI companions, proper training, comprehensive usage manuals, and a feedback loop involving human oversight are essential. This ensures that AI-assisted code remains both maintainable and sustainable.
Further Read:
3) Beyond Answers: The Power of Effective Questioning
4) DORA Metrics
5) Tech Debt
Top comments (0)