Until recently, coding involved repetitive tasks, and required knowledge of many minute details. These aspects of coding detracted from the truly creative work that developers enjoy, and they slowed developers down.

Now, artificial intelligence technology promises to eliminate much of that repetitive work, and developers are no longer thrown off task by having to search the web for those minute details.

The technology works similarly to auto-complete in word processing but writing code instead of plain language and completing whole functions at a time.

AI Helps with Algorithms, Boilerplate Code

Among the latest offerings in AI-powered is Github’s Copilot, an AI-powered pair programmer tool available to all developers for $10 a month or $100 per year.

The company claims Copilot can suggest complete methods, boilerplate code, whole unit tests, and even complex algorithms.

“With AI-powered coding technology like Copilot, developers can work as before, but with greater speed and satisfaction, so it’s really easy to introduce,” explains Oege De Moor, vice president of GitHub Next. “It does help to be explicit in your instructions to the AI.”

He explains that during the Copilot technical preview, GitHub heard from users that they were writing better and more precise explanations in code comments because the AI gives them better suggestions.

“Users also write more tests because Copilot encourages developers to focus on the creative part of crafting good tests,” De Moor explains. “So, these users feel they write better code, hand in hand with Copilot.”

He adds that it is, of course, important that users are made aware of the limitations of the technology.

“Like all code, suggestions from AI assistants like Copilot need to be carefully tested, reviewed, and vetted,” he says. “We also continuously work to improve the quality of the suggestions made by the AI.”

GitHub Copilot is built with Codex — a descendent of GPT-3 — which is trained on publicly available source code and natural language.

“Because it was trained both on source code and natural language, you can write a comment in English, and then Codex will suggest the code that follows,” De Moor explains. “In fact, it can even write an entire function or class just given its description in English.”

Future AI Capabilities Could Assist with Debugging

Tabnine CEO Dror Weiss says in the future, AI assistants will be able to review code for developers, create tests automatically, assist with debugging, and do clever automated maintenance operations on systems.

“Eventually, every activity that can be automated, will be automated,” he says.

From his perspective, a critical feature for organizations is the ability to integrate the specific best practices and code patterns for projects and organizations.

“Using this kind of customized AI, organizations will benefit not just from acceleration but also from better consistency and quality of the code,” he explains. “Another benefit is reducing the time it takes for developers to become highly productive when joining a new project.”

One major advantage of AI-assisted coding tools is context-aware code completion.

Microsoft’s Visual Studio IntelliCode, for example, is a set of AI-assisted capabilities that enable developers to efficiently complete code with features like argument completion, code formatting, and style rule reference.

IntelliCode is trained on the code of thousands of highly rated open source projects on GitHub, and it uses context from the current code to make relevant recommendations.

…….

Source: https://www.informationweek.com/software/the-power-of-ai-coding-assistance

Leave a comment

Your email address will not be published. Required fields are marked *