Wednesday, 11 October 2023 22:31

GitHub research finds AI-assisted programming produces higher code quality

By

Assistive artificial intelligence is emerging all around us, but does it really help or is it a gimmick? GitHub has the answers, after conducting research on its own GitHub Copilot Chat facility - showing that in fact code quality is objectively improved.

Generative AI has captured the world's attention but making funny natural language answers is one thing; writing genuine, secure, production-quality software is something else entirely. Yet, GitHub's own GitHub Copilot Chat does just this. It provides developers on the GitHub platform with real-time guidance, tips, troubleshooting, remediation, and solutions all tailored to their specific challenges.

Last year GitHub research found developers using GitHub Copilot were producing code 55% faster. Speed doesn't automatically imply "good" but today's new research from GitHub finds there is no compromise. In fact, 85% of developers felt more confident in their code quality when authoring code with GitHub Copilot and GitHub Copilot Chat. Further, code reviews were more actionable and were completed 15% faster with GitHub Copilot Chat. And, 88% of developers reported maintaining their valuable flow state with GitHub Copilot Chat because they felt less frustrated, more focused, and they enjoyed coding more.

GitHub VP of product Mario Rodriguez said, “We know there’s a difference between doing something fast and doing something well. We built GitHub Copilot and GitHub Copilot Chat to improve the lives of developers by helping them focus, keeping them in the flow, and empowering them to find more joy in their work. The results have shown that these AI tools are doing that and more—we look forward to building what’s next.”

To ensure their research was scientific, GitHub needed to quantify code quality. The company explains it developed a rubric of five metrics that it uses internally on its own code, and which also aligns with academic and industry standards. Specifically, these metrics were:

  • Readable: Code that is difficult to read makes it more challenging to maintain, improve, and document.
  • Reusable: Code reuse is a cornerstone of developer collaboration. It saves time and energy, breaks down silos, and creates consistency as a whole.
  • Concise: The less repetitive the code is, the easier it’ll be to read, understand, and build upon. Complex code can lead to bugs and issues that will be tough to remediate.
  • Maintainable: Well-maintained code means that developers minimize dependencies. Maintainable code also impacts developers' ability to search and practice code reuse.
  • Resilient: Resilient code will maintain its functionality (or at least have minimal disruption) if there are errors. This goes a long way toward ensuring that code will, simply put, work.

The study investigated whether GitHub Copilot and GitHub Copilot Chat would produce code that passed unit testing, reduced the time required to review the code because it adhered to quality standards and readability, and improved the perceived quality of the code produced.

GitHub's research found that in every one of these measures, developers felt their coding improved when using GitHub Copilot. Overall, developers reported an increase in confidence about their code because it is more concise, maintainable, resilient, error-free, and readable while using the GitHub assistive technologies than without.

CoPilot

Some feedback from study participants says:

  • “The code was so clean, I could just look at the code, know what was going on, and bring it over fairly easily to my codebase. So, I felt the code quality was very clean and easy to understand. When I was doing the pull request review using Copilot, I saw how good it was at generating proper error handling code.” said a Senior Software Engineer at a Fortune 500 company
  • “One of the more actionable comments I received was related to conceptual understanding of my code–I want other developers to be able to understand what I'm doing, so this was good feedback.” - Software Engineer
  • Because I’ve had industry experience for over a decade, I usually prefer coding with a notepad or a simplistic platform and Copilot Chat was a really useful tool for checking basic things without me needing to go to Google or Stack Overflow. And Copilot has a pretty neat syntax edition.” - Senior Systems Validation Engineer

The previous research found the majority of developers using GitHub Copilot reported feeling more fulfilled; this year, the study shows 88% of participants similarly felt less frustrated and more focused.

For individual developers through to enterprise teams, there's a clear benefit in leveraging GitHub's Copilot range; happier, more productive developers, producing high-quality code faster can only lead to greater productivity, more features, and less technical debt.

 

Read 3160 times

Please join our community here and become a VIP.

Subscribe to ITWIRE UPDATE Newsletter here
JOIN our iTWireTV our YouTube Community here
BACK TO LATEST NEWS here




IDC WHITE PAPER: The Business Value of Aiven Data Cloud Solutions

According to IDC, Aiven enables your teams to perform more efficiently, reduce direct infrastructure costs, and provide improved database performance, agility and scalability.

Find out how Aiven makes teams 48% more efficient, allowing staff to focus on high-value activities that drive real business results:

340% 3-year ROI – break even in 5 months (average)

37% lower 3-year cost of operations

78% reduction in staff time for database deployments


Download the IDC White Paper now

DOWNLOAD WHITE PAPER!

PROMOTE YOUR WEBINAR ON ITWIRE

It's all about Webinars.

Marketing budgets are now focused on Webinars combined with Lead Generation.

If you wish to promote a Webinar we recommend at least a 3 to 4 week campaign prior to your event.

The iTWire campaign will include extensive adverts on our News Site itwire.com and prominent Newsletter promotion https://itwire.com/itwire-update.html and Promotional News & Editorial. Plus a video interview of the key speaker on iTWire TV https://www.youtube.com/c/iTWireTV/videos which will be used in Promotional Posts on the iTWire Home Page.

Now we are coming out of Lockdown iTWire will be focussed to assisting with your webinars and campaigns and assistance via part payments and extended terms, a Webinar Business Booster Pack and other supportive programs. We can also create your adverts and written content plus coordinate your video interview.

We look forward to discussing your campaign goals with you. Please click the button below.

MORE INFO HERE!

BACK TO HOME PAGE
David M Williams

David has been computing since 1984 where he instantly gravitated to the family Commodore 64. He completed a Bachelor of Computer Science degree from 1990 to 1992, commencing full-time employment as a systems analyst at the end of that year. David subsequently worked as a UNIX Systems Manager, Asia-Pacific technical specialist for an international software company, Business Analyst, IT Manager, and other roles. David has been the Chief Information Officer for national public companies since 2007, delivering IT knowledge and business acumen, seeking to transform the industries within which he works. David is also involved in the user group community, the Australian Computer Society technical advisory boards, and education.

Share News tips for the iTWire Journalists? Your tip will be anonymous

Subscribe to Newsletter

*  Enter the security code shown:

WEBINARS & EVENTS

CYBERSECURITY

PEOPLE MOVES

GUEST ARTICLES

Guest Opinion

ITWIRETV & INTERVIEWS

RESEARCH & CASE STUDIES

Channel News

Comments