Sat. Dec 14th, 2024

Developers are turning to GitHub Copilot, a ChatGPT-like tool that helps them write code. One startup VP says it helped him save 10% of the time he’d spend coding.<!-- wp:html --><p>GitHub CEO Thomas Dohmke.</p> <p class="copyright">GitHub</p> <p>GitHub Copilot, launched in 2021, uses generative AI to help programmers write code.<br /> The technology was created by OpenAI, the Microsoft-backed creator of ChatGPT.<br /> Programmers say it's led to big productivity gains, but domain knowledge is still necessary.</p> <p>While ChatGPT has spurred a lot of excitement around artificial intelligence, the conversational chatbot is not the only technology to come from OpenAI.</p> <p>The Microsoft-backed company has developed a slew of generative-AI products, including one called Codex that's already helping engineers become more productive. </p> <p>Codex is the basis for GitHub Copilot, a tool that functions as a sort of autocomplete for software engineers. Copilot looks at the code an engineer is writing and <a href="https://www.businessinsider.com/chatgpt-openai-codex-developer-jobs-2023-2">suggests the next few lines they might want to write</a> to solve their problem. Users can also write a comment in human language describing the program they want to build, and Copilot will provide a suggested solution.</p> <p>Software engineers often have to put together scaffolding, or boilerplate code software needs. Because the code is so common, Copilot can easily reproduce it. GitHub has said that in files where it's enabled, Copilot is responsible for <a href="https://github.blog/2022-06-21-github-copilot-is-generally-available-to-all-developers/" target="_blank" rel="noopener">upward of 40%</a> of the written code. Engineers who spoke with Insider said it had already proved a major boon for productivity. </p> <h2>Copilot can help developers become more productive</h2> <p>Cyrus Ghazanfar, the chief technology officer at the 401(k)-management startup <a href="https://meetbeagle.com/">Beagle</a>, said his company began experimenting with Copilot in recent months. He now requires his team of three engineers to use the tool because he quickly found it saved him plenty of time by eliminating rote work. Already, Copilot has proved useful for creating databases, he said.</p> <p>"In these frameworks, there's a specific way of creating databases," Ghazanfar said. "I find Copilot super useful because there's a lot of repetition when you do these kinds of things."</p> <p>For example, many databases have the same properties, like a timestamp that says when the data was created. Ghazanfar said he could now use Copilot to build a database with these properties. </p> <p>Bill Mers, the vice president of engineering at <a href="https://lookdeep.health/" target="_blank" rel="noopener">LookDeep Health</a>, said it's "almost creepy" when Copilot figured out exactly what code he's trying to write. Copilot gleans its knowledge from the large corpus of projects on GitHub, but it also uses the context of the project an engineer is working on to suggest tailored code. </p> <p>Mers estimated that Copilot had saved him 10% of the time he would've normally spent coding. Occasionally, he writes comments inside his code explaining to other engineers what exactly the scripts were designed to do, and Copilot can pick up on that and write human-language descriptions of exactly what the code is doing.</p> <p>"That was a bunch of typing, a bunch of thinking, I didn't have to do," Mers said.</p> <h2><strong>Copilot is sometimes inaccurate</strong></h2> <p>While Copilot's suggestions are "pretty accurate," using the tool can be a double-edged sword because it's easy to trust it too much, Ghazanfar said, which means the developer must go back and correct errors when the suggested code doesn't work. </p> <p>Even former GitHub CEO Nat Friedman, who oversaw Copilot's launch, has spoken about the product's flaws. At a <a href="https://www.businessinsider.com/chatgpt-generative-ai-genai-jasper-conference-crypto-san-francisco-2023-2">recent event</a> in San Francisco, he compared using Copilot to a lottery experience. Programmers write their code, and while Copilot's suggestions are frequently wrong, every now and then it passively suggests an answer that perfectly solves a developer's need, Friedman said.</p> <p>Though Copilot may be good at solving common programming needs, like ChatGPT, it is prone to "hallucination," a term the AI industry has adopted to describe chatbots <a href="https://www.businessinsider.com/ai-chatbot-chatgpt-google-microsofty-lying-search-belief-2023-2">confidently suggesting answers that are completely made up</a>.</p> <p>"Copilot will give you a very compelling answer that looks great, and this code looks great, and these API calls look great. But then it turns out the APIs don't even exist," Mers said, referring to application programming interfaces, which help apps communicate with each other. </p> <p>In other words, if developers don't already understand what they're looking for, they'll quickly get stuck using Copilot.  That's why engineers <a href="https://www.businessinsider.com/chatgpt-openai-codex-developer-jobs-2023-2">likely won't go extinct anytime soon</a>.</p> <p>"Sure, you could create a basic iOS app with Copilot," Ghazanfar said. "But to do more-complicated things you need to know what you're trying to ask, how to fix the suggested code when it's wrong, and the best way to write code when it's not a super opinionated framework where there's just one way of doing things." </p> <div class="read-original">Read the original article on <a href="https://www.businessinsider.com/codex-github-copilot-chatgpt-openai-productivity-2023-3">Business Insider</a></div><!-- /wp:html -->

GitHub CEO Thomas Dohmke.

GitHub Copilot, launched in 2021, uses generative AI to help programmers write code.
The technology was created by OpenAI, the Microsoft-backed creator of ChatGPT.
Programmers say it’s led to big productivity gains, but domain knowledge is still necessary.

While ChatGPT has spurred a lot of excitement around artificial intelligence, the conversational chatbot is not the only technology to come from OpenAI.

The Microsoft-backed company has developed a slew of generative-AI products, including one called Codex that’s already helping engineers become more productive. 

Codex is the basis for GitHub Copilot, a tool that functions as a sort of autocomplete for software engineers. Copilot looks at the code an engineer is writing and suggests the next few lines they might want to write to solve their problem. Users can also write a comment in human language describing the program they want to build, and Copilot will provide a suggested solution.

Software engineers often have to put together scaffolding, or boilerplate code software needs. Because the code is so common, Copilot can easily reproduce it. GitHub has said that in files where it’s enabled, Copilot is responsible for upward of 40% of the written code. Engineers who spoke with Insider said it had already proved a major boon for productivity. 

Copilot can help developers become more productive

Cyrus Ghazanfar, the chief technology officer at the 401(k)-management startup Beagle, said his company began experimenting with Copilot in recent months. He now requires his team of three engineers to use the tool because he quickly found it saved him plenty of time by eliminating rote work. Already, Copilot has proved useful for creating databases, he said.

“In these frameworks, there’s a specific way of creating databases,” Ghazanfar said. “I find Copilot super useful because there’s a lot of repetition when you do these kinds of things.”

For example, many databases have the same properties, like a timestamp that says when the data was created. Ghazanfar said he could now use Copilot to build a database with these properties. 

Bill Mers, the vice president of engineering at LookDeep Health, said it’s “almost creepy” when Copilot figured out exactly what code he’s trying to write. Copilot gleans its knowledge from the large corpus of projects on GitHub, but it also uses the context of the project an engineer is working on to suggest tailored code. 

Mers estimated that Copilot had saved him 10% of the time he would’ve normally spent coding. Occasionally, he writes comments inside his code explaining to other engineers what exactly the scripts were designed to do, and Copilot can pick up on that and write human-language descriptions of exactly what the code is doing.

“That was a bunch of typing, a bunch of thinking, I didn’t have to do,” Mers said.

Copilot is sometimes inaccurate

While Copilot’s suggestions are “pretty accurate,” using the tool can be a double-edged sword because it’s easy to trust it too much, Ghazanfar said, which means the developer must go back and correct errors when the suggested code doesn’t work. 

Even former GitHub CEO Nat Friedman, who oversaw Copilot’s launch, has spoken about the product’s flaws. At a recent event in San Francisco, he compared using Copilot to a lottery experience. Programmers write their code, and while Copilot’s suggestions are frequently wrong, every now and then it passively suggests an answer that perfectly solves a developer’s need, Friedman said.

Though Copilot may be good at solving common programming needs, like ChatGPT, it is prone to “hallucination,” a term the AI industry has adopted to describe chatbots confidently suggesting answers that are completely made up.

“Copilot will give you a very compelling answer that looks great, and this code looks great, and these API calls look great. But then it turns out the APIs don’t even exist,” Mers said, referring to application programming interfaces, which help apps communicate with each other. 

In other words, if developers don’t already understand what they’re looking for, they’ll quickly get stuck using Copilot.  That’s why engineers likely won’t go extinct anytime soon.

“Sure, you could create a basic iOS app with Copilot,” Ghazanfar said. “But to do more-complicated things you need to know what you’re trying to ask, how to fix the suggested code when it’s wrong, and the best way to write code when it’s not a super opinionated framework where there’s just one way of doing things.” 

Read the original article on Business Insider

By