The 3 Best AI Coding Assistants
Tags: ai, coding, programming, productivity
Published: 2023-08-02 01:52:09

<!-- wp:heading -->
<h2 class="wp-block-heading">Which AI Coding Assistant Does the Best Job In Helping Programmers Write Production-Ready Code Faster?</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Coding is hard. A new family of AI tools called <strong>AI Coding Assistants</strong> tries to make this job easier for programmers by translating plain English into working code.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"align":"center","id":1303,"width":374,"height":374,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image aligncenter size-large is-resized"><img src="https://five.co/wp-content/uploads/2023/07/Five.Co-AI-Coding-Assistants-Would-You-Like-Some-Code-1024x1024.png" alt="" class="wp-image-1303" width="374" height="374"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Since the release of Chat-GPT 3 in late 2022, AI has shown truly remarkable capabilities: from passing bar exams for lawyers to generating code at a quality and speed better than human programmers. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Studies have shown that <a href="https://www.mckinsey.com/capabilities/mckinsey-digital/our-insights/unleashing-developer-productivity-with-generative-ai#/">AI coding assistants can help software developers complete coding tasks twice as fast</a> as developers working without AI. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Lately, a whole wave of such AI Coding Assistants has entered the market. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Which AI Coding Assistant stands out from the crowd? This article compares some of the most popular AI coding assistants, their features, limitations, and popularity: GitHub Copilot, AWS Code Whisperer, and Tabnine.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Last, we check out how developers can benefit from AI inside of Five to rapidly build and deploy web applications, and what the limitations of AI Coding Assistants are.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">What Are AI Coding Assistants?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>AI Coding Assistants are software tools that harness the power of artificial intelligence to enhance developers' coding speed, code quality, and code security. They generate code based on natural language prompts.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Trained on billions of lines of code taken from public code repositories, AI Coding Assistants are based on Large Language Models (LLM), a type of AI algorithm that uses deep learning techniques and massively large data sets.  </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>AI Coding Assistants are not stand-alone solutions that can produce code or systems independently. Instead, they are embedded into the most commonly used Integrated Development Environments (IDEs) and code editors, such as VS Studio Code or the JetBrains family of IDEs (including IntelliJ, PyCharm, GoLand, etc.) as a plug-in or extension.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Once embedded into an IDE, AI Coding Assistants typically offer these features:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><!-- wp:list-item -->
<li>They <strong>generate code</strong> from natural language prompts or code comments.</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li>They <strong>auto-complete code</strong> by tracking programmers' code in real time.</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li>They detect and <strong>suggest fixes to errors, bugs, and security vulnerabilities</strong>.</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li>They <strong>interpret code</strong> and help comment on code.</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li>They <strong>translate code</strong> from one language to another.</li>
<!-- /wp:list-item --></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>To simplify, let's group these features into three main categories.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":4} -->
<h4 class="wp-block-heading">The Three Main Features of AI Coding Assistants</h4>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Given the power and versatility of AI Coding Assistants, it's easy to misunderstand what they can and cannot do. To make things easier, the three main features of AI Coding Assistants are:</p>
<!-- /wp:paragraph -->

<!-- wp:list {"ordered":true,"type":"1"} -->
<ol type="1"><!-- wp:list-item -->
<li><strong>Code Documentation:</strong> Documenting or interpreting code using comments, by applying standard naming conventions, and following other best practices to improve readability and to make future changes easier.</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li><strong>Code Generation</strong>: Generating new code based on natural-language prompts, auto-filling standard functions, auto-completing coding statements in real-time, or making code suggestions.</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li><strong>Code Refactoring</strong>: Improving the quality of existing code without altering its behavior by fixing bugs, errors, or vulnerabilities.</li>
<!-- /wp:list-item --></ol>
<!-- /wp:list -->

<!-- wp:separator -->
<hr class="wp-block-separator has-alpha-channel-opacity"/>
<!-- /wp:separator -->

<!-- wp:heading -->
<h2 class="wp-block-heading">The 3 Best AI Coding Assistants</h2>
<!-- /wp:heading -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">1. GitHub Copilot</h3>
<!-- /wp:heading -->

<!-- wp:image {"align":"center","id":1306,"width":232,"height":122,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image aligncenter size-full is-resized"><img src="https://five.co/wp-content/uploads/2023/07/image-3.png" alt="" class="wp-image-1306" width="232" height="122"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>GitHub's Copilot is an AI tool designed to improve developer productivity and was first released in October 2021. It was the first LLM tool to be released to the public and </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Eddie Aftandilian, Principal Researcher at GitHub Copilot, says that "<a href="https://www.se-radio.net/2022/10/episode-533-eddie-aftandilian-on-github-copilot/">the idea behind Copilot came from a combination of the existing auto-complete in IDEs that you see, combined with the emerging capabilities of machine learning models.</a>"</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>GitHub describes Copilot as an "AI pair programmer": someone who constantly looks over programmers' shoulders as they write, read, or debug code and gives helpful suggestions in the process. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Trained on billions of lines of code, GitHub Copilot turns natural language prompts into coding suggestions across dozens of languages. For example, a programmer can write a comment inside their favorite IDE to ask for a function that reverses a string, and Copilot will spit out the function to do so. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In more general terms, Copilot is a natural-language-to-code system that helps turn simple English instructions into over a dozen popular coding languages. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The technology powering Copilot is Open AI's Codex, which was trained on GitHub's hundreds of millions of public code repositories. Not surprisingly, Copilot generates code best for those languages that are most commonly found on Github, namely Python, JavaScript, TypeScript, Ruby, Go, C++, and C#. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>GitHub Copilot is available as an extension in Visual Studio Code, Visual Studio, Vim, Neovim, and the JetBrains suite of IDEs. Pricing starts from US$10 per month or US$100 per year.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>As of the time of writing the GitHub Copilot extension had more than 430,000 installs on from the Visual Studio Marketplace. </p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">2. AWS Code Whisperer</h3>
<!-- /wp:heading -->

<!-- wp:image {"align":"center","id":1307,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image aligncenter size-full"><img src="https://five.co/wp-content/uploads/2023/07/image-4.png" alt="" class="wp-image-1307"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>AWS Code Whisperer, released in November 2022, is AWS's response to Github Copilot. Code Whisperer was trained on billions of lines of code, including Amazon and open-source code.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Whereas GitHub refers to Copilot as an "AI pair programmer", AWS describes Code Whisperer as an "AI coding companion". Both are code generators.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Code Whisperer can currently generate code written in Python, Java, JavaScript, TypeScript, C#, Go, Rust, PHP, Ruby, Kotlin, C, C++, Shell scripting, SQL, and Scala. It can also scan your code to highlight and define security issues.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Code Whisperer is available as part of the AWS toolkit for Visual Studio (VS) Code and the JetBrains family of IDEs, as well as for AWS Cloud9, AWS Lambda console, JupyterLab, and Amazon SageMaker Studio.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>As of the time of writing the AWS Toolkit for VS Code had more than 140,000 installs on from the Visual Studio Marketplace. Unlike GitHub Copilot, individual developers can use CodeWhisperer for free. A free AWS Builder ID is required.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">3. Tabnine</h3>
<!-- /wp:heading -->

<!-- wp:image {"align":"center","id":1308,"width":310,"height":88,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image aligncenter size-full is-resized"><img src="https://five.co/wp-content/uploads/2023/07/image-5.png" alt="" class="wp-image-1308" width="310" height="88"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Tabnine is an Israeli, venture-capital-backed start-up in the emerging field of AI Coding Assistants. Because of the high cost of training LLM models, start-ups are often considered to be at a disadvantage to larger, more established tech companies, such as Microsoft or AWS. However Tabnine has shown that smaller companies can build competitive products. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Tabnine is an AI-powered code completion tool designed to assist developers in writing code more efficiently. Tabnine autocompletes lines of code, suggests full functions based on function declaration, and generates blocks of code based on natural language comments.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Unlike GitHub's Copilot or AWS' Code Whisperer, Tabnine <a href="https://techcrunch.com/2022/06/15/tabnine-raises-15-5m-for-ai-that-autocompletes-code/">uses smaller “code-native” AI models trained on specific programming languages or areas.</a> </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Tabnine's model can be trained on smaller datasets to capture the specific patterns in customers' repositories and deployed on-premise. For example, Tabnine can be used by customers who want their own AI Coding Assistant that is specifically trained on their own code repositories, rather than publicly available code.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Tabnine's Co-Founder and CTO describes Tabnine's unique approach to the industry like this: "If you want to be a subject in Microsoft's kingdom, use Copilot. If you want to be your own emperor, use Tabnine". With Tabnine, you can run an air-gapped model in a closed environment on your own code. You have full control over the code that's used to train your AI assistant. Of course, this also means that the AI assistant will better understand the intricacies of your codebase, rather than giving generic advice.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Tabnine currently supports Angular, C, C++, C#, CSS, Dart, Go, Haskell, HTML, Java, Javascript, Kotlin, Matlab, NodeJS, Objective C, Perl, PHP, Python, React, Ruby, Rust, Sass, Scala, Swift, Typescript. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The tool is available as an extension to the following IDEs: VS Code, IntelliJ, WebStorm, PyCharm, GoLand, Eclipse, Sublime, RubyMine, CLion, Neovim, PhpStorm, Android Studio, Rider, and AppCode.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>As of the time of writing the Tabnine had more than 5.9m installs on from the Visual Studio Marketplace. Tabnine has a free plan that offers basic code completion features.</p>
<!-- /wp:paragraph -->

<!-- wp:separator -->
<hr class="wp-block-separator has-alpha-channel-opacity"/>
<!-- /wp:separator -->

<!-- wp:heading -->
<h2 class="wp-block-heading">GitHub Copilot vs Code Whisperer vs Tabnine: Which AI Assistant Is the Best Code Generator?</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>There is no easy answer to the question of which one of these three coding assistants is the best.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><a href="https://www.reddit.com/r/webdev/comments/10e8nht/github_copilot_vs_tabnine/">In a discussion thread on Reddit</a>, one user writes that Tabnine "has always been quiet and useful, not very flashy or especially "fun" to use, but I also never ran into problems with it.". For Co-Pilot, the same user says that it is quite "dangerous". Why? </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>"Since Copilot does so much and also well at first glance, you may drop your guard over time and just *believe* what it suggests, without double-checking".</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Is it a problem of the technology or the user if the technology is so good that you tend to trust it almost blindly? </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>A more objective study of the subject was carried out by Burak Yetistiren et al. in April 2023. In a paper titled "<a href="https://arxiv.org/abs/2304.10778">Evaluating the Code Quality of AI-Assisted Code Generation Tools: An Empirical Study on GitHub Copilot, Amazon CodeWhisperer, and ChatGPT</a>", the team of authors came to the conclusion that ChatGPT is the best code generator: "The latest versions of ChatGPT, GitHub Copilot, and Amazon CodeWhisperer generate correct code 65.2%, 46.3%, and 31.1% of the time". </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>They further observed that Copilot and Code Whisperer improved dramatically between releases, showing that the technology is progressing rapidly.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Using ChatGPT For Code Generation</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>If you have read this far, you might rightfully wonder why ChatGPT is not included in this review.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The reason we did not add ChatGPT to our list of reviewed AI Coding Assistants is that cannot be embedded into an IDE. Moreover, ChatGPT is developed by OpenAI, the same company that developed Codex, the LLM behind GitHub Copilot. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Based on the information that is publicly accessible about these two tools, there seems to be substantial overlap in their training data, so if you wish to use ChatGPT right inside your IDE, the closest you'll get is Github Copilot. </p>
<!-- /wp:paragraph -->

<!-- wp:separator -->
<hr class="wp-block-separator has-alpha-channel-opacity"/>
<!-- /wp:separator -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Using AI Coding Assistants In Five</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Five is an IDE for rapid web application development and deployment. Five helps developers build custom business applications, CRUD applications, internal tools, or line-of-business applications.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Five lets developers extend their applications by writing JavaScript or TypeScript in an IDE-like code editor that comes with handy features, such as syntax highlighting and code completion. On top of this, they can benefit from Open AI's code interpretation and debugging features right inside Five.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><a href="https://help.five.org/2.1/docs/configurations/setup-open-ai/">Simply add your Open AI API key to Five</a>, and let AI check your code for errors and bugs, or let AI explain your code to you. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>To see Five's AI features in action, check out these two videos:</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>1. This video demonstrates how to explain code using AI in Five: </p>

{% embed https://www.youtube.com/watch?v=CMXTuxwgfbU %}


<p>2. Here's a video of how to <strong>use AI to check for errors</strong> in your JavaScript or TypeScript functions in Five:</p>
<!-- /wp:paragraph -->
{% embed https://youtu.be/xlhp-iGBG4s %}

</div></figure>
<!-- /wp:embed -->



<!-- wp:separator -->
<hr class="wp-block-separator has-alpha-channel-opacity"/>
<!-- /wp:separator -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Code Responsibly: What Are The Limitations of AI Coding Assistants?</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Now that AI can help us write code, where are the limitations? Is the code generated by AI 100% reliable? </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The answer is no. Developers need to make sure to use AI Coding Assistants responsibly and be aware of their limitations.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"align":"center","id":1305,"width":399,"height":399,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image aligncenter size-large is-resized"><img src="https://five.co/wp-content/uploads/2023/07/Five.Co-Code-Responsibily-1-1024x1024.png" alt="Five.Co- Use AI Coding Assistants to Code-Responsibily" class="wp-image-1305" width="399" height="399"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>AI does a pretty good job of generating code. But AI Coding Assistants are not perfect and they don't get 100% of the code that they generate right. This is because of the way that they "learn" how to code. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Large language models, the technology that all of the Coding Assistants reviewed above rely upon, are text generators. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>They analyze an incredibly vast dataset of text - in the case of AI Coding Assistants, code - and use this knowledge to predict and generate the next best word in the sequence. But their predictions can be wrong, as they do not apply any reasoning or logic, or try to understand the purpose of code in the way a programmer would do. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>For example, "there have been many reports and articles about AI hallucinating [software code] packages that don't exist, attackers predicting the package names and then creating malicious versions", says <a href="https://www.forbes.com/sites/adrianbridgwater/2023/07/24/manual-overdrive-whenand-when-not-to-use-use-software-automation/?sh=311d0f2116c8">Sara Faatz, Director of Developer Relations at Progress</a>, a software development company.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>On the <a href="https://docs.github.com/en/copilot/overview-of-github-copilot/about-github-copilot-for-individuals">GitHub Copilot website</a>, this problem is addressed with the following statement (highlights are ours):</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>“GitHub Copilot offers suggestions from a model that OpenAI built from billions of lines of open-source code. As a result, <strong>the training set for GitHub Copilot may contain insecure coding patterns, bugs, or references to outdated APIs or idioms.</strong> When GitHub Copilot produces suggestions based on this training data, <strong>those suggestions may also contain undesirable patterns</strong>. You are responsible for ensuring the security and quality of your code. We recommend you take the same precautions when using code generated by GitHub Copilot that you would when using any code you didn't write yourself. These precautions include rigorous testing, IP scanning, and tracking for security vulnerabilities.”</p>
<!-- /wp:paragraph -->

<!-- wp:tadv/classic-paragraph -->
<p>Another risk of using LLMs is the lack of regulation. Let's say an LLM was trained on a public repository that subsequently is made private by the owner who no longer consents for their code to be used by the LLM. What then?</p>
<p>In the worst case, the development team using the code would have to rewrite the code, as they are illegally using someone else's content without their consent. If this sounds far-fetched, it is exactly what is happening in the area of image-generating AI. <a href="https://www.theverge.com/2023/1/17/23558516/ai-art-copyright-stable-diffusion-getty-images-lawsuit">Getty Images claims Stability AI ‘unlawfully’ scraped millions of images from its site</a> and is suing the company over alleged copyright violations.</p>
<p>Martin Heller, a tech writer says, aptly summed up the impact of AI Coding Assistants on programmers' work when he wrote:</p>
<p>"<a href="https://www.infoworld.com/article/3696970/llms-and-the-rise-of-the-ai-code-generators.html"><em>Large language models</em> like GPT-4 and tools like <em>GitHub Copilot</em> can make good programmers more efficient and bad programmers more dangerous.</a>"</p>
<p>On top of this, AI can introduce new risks into the development process, such as copyright infringements, or accidentally using hallucinated software packages.</p>
<p>To sum up: large language models and AI Coding Assistants are powerful tools that can help software developers write production-ready code faster. But they come with their own risks and shortcomings.</p>
<p>As the popular saying goes: "AI won't take your job. The person using AI will." To expand on this: it's the person who knows how to use AI responsibly and with foresight. This is especially true in programming.</p>
<!-- /wp:tadv/classic-paragraph -->