Artificial Intelligence continues to evolve faster and faster – we see articles in our newsfeeds every day about how AI can write poems and proposals, summarize academic papers and medical diagnoses, drive cars, and detect credit card fraud and “unusual” network activity. At RevGen, we’ve been exploring AI Coding Assistants and how they can help our developers and our clients.
What Are AI Coding Assistants?
AI Coding Assistants use a generative AI engine like ChatGPT to offer suggestions, make recommendations, and propose code snippets. They can suggest code for whole functions and procedures, or simply point out where a variable needs to be reset.
The best assistants do this based on an analysis of vast amounts of code, learning coding patterns, best practices, and common errors. Combined with an understanding of the codebase the developer is working in, these tools can really live up to the moniker of “artificial intelligence.” One tool, GitHub CoPilot, claims that developers accept 35% of suggestions made by the tool.
How Do AI Coding Assistants Help Developers?
Productivity – AI Coding Assistants help developers be more productive by offering autocompletion, writing simple or repetitive code, pointing out common mistakes, and suggesting libraries or functions that can eliminate the need to write some code at all. They can even help write comments and documentation: what developer doesn’t want that? All of this leads to less time spent on development and increased productivity.
Learning – By providing well-written code snippets and suggesting optimizations, these tools can help developers improve their skills. What used to take hours of weeding through StackOverflow to find the best solution is now suggested right there in the integrated development environment (IDE).
Quality & Consistency – AI Coding Assistants improve the overall quality of the codebase. By suggesting consistent code and enforcing coding standards, these tools improve the readability of code while minimizing bugs and increasing maintainability.
Enjoying this insight?
Sign up for our newsletter to receive data-driven insights right to your inbox on a monthly basis.
Understand Complex Logic – AI Coding Assistants readily suggest syntax and code snippets, but they cannot understand complex requirements and build the code to suit.
Solve Problems – AI Coding Assistants struggle with complex or unique coding challenges that require deep problem-solving abilities.
Be Creative – These tools can suggest solutions based on the codebases they have learned from but cannot come up with creative or innovative solutions on their own.
What AI Coding Assistant Tools Are Out There?
The two most popular tools are currently GitHub CoPilot and Amazon CodeWhisperer. Other tools such as tabnine and CodeSquire bring AI Code Assistant functionality to a wider variety of environments while others have a specific focus (CodeWP works exclusively with WordPress) or use case (What The Diff is focused on code review and documentation). Furthermore, traditional generative AI tools such as ChatGPT can write code that developers can copy and paste into their IDE since the current version of CoPilot is built on an older version of GPT.
How Well Do They Work in the Real World?
Since it’s been years since I wrote any code, I spoke to an architect at RevGen with significant experience using these tools to get a first-hand understanding of how they work in the real world. They estimate that the use of GitHub CoPilot might save them as much as 25-30% of their time.
They find that the tool works especially well for repetitive code (i.e., setting up loops, writing click-handlers, etc.) and helping with code comments. They have also had it identify extraneous code when reading over the generated comments. By creating a comment such as “//loop over the list of date ranges and return a merged list” they can prompt CoPilot to suggest useful code that requires minimal effort to incorporate. Finally, they said that CoPilot is great at finding bugs related to resetting state, such as suggesting other variables to be reset to their default value.
However, our architect warned me that developers need to be diligent when using these tools. They can often misunderstand context and introduce errors if the developer is not paying attention or is inexperienced; they caught one coding assistant inventing variable and function names instead of using what already existed in the file.
Conclusion
AI Coding Assistants are changing the landscape of software development. Their ability to enhance productivity, improve code quality, and help developers learn their craft is revolutionizing the way developers work. As they continue to evolve, these assistants will become more sophisticated, freeing developers from menial tasks and allowing them to focus on what they do best: creating software that drives enterprises forward.
At RevGen, we’re always evaluating the latest in technology – across Digital Solutions, Data and Analytics, and Customer Experience – to help bring value to our customers. Artificial Intelligence is rapidly changing the landscape of what is possible and we are happy to help you navigate how these new tools can help you write amazing software to transform your organization.
Noah Benedict leads RevGen’s Digital Enablement practice. He is passionate about using technology to advance business and empower his clients to embrace new opportunities.
A quick summary of our series on AI implementation, where we covered topics from data alignment and architecture to AI analytics and governance, addressing the benefits and challenges of AI integration.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Strictly Necessary Cookies
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
3rd Party Cookies
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!