Skip to main content

Digital Trends may earn a commission when you buy through links on our site. Why trust us?

Google Bard just took a big step toward being a proper ChatGPT rival

The Google Bard AI chatbot can now complete various programming and software development tasks such as code generation, code debugging, and explanation of code.

This was an important missing feature in Bard’s ability to compete with ChatGPT, the most popular AI chatbot right now.

Google Bard
Image used with permission by copyright holder

Google announced the update of Bard on Friday on its blog, stating that it has been one of the primary requests from users since the launch of the AI chatbot in March. Bard can assist with generating, debugging, and explaining over 20 different programming languages including C++, Go, Java, Javascript, Python, and Typescript. It can also export Python code to Google Colab without needing to copy and paste, as well as aid in writing functions for Google Sheets.

Google noted an especially helpful part of the Bard update is its ability to explain parts of code to used, stating it might be helpful for those who are new to programming, or if someone is stuck on a particularly difficult block of code.

When it comes to debugging, if you get an error with Bard, you need only input this code didn’t work, please fix it, and the chatbot will assist in correcting the defective code. Google noted that Bard can even debug code that it developed.

As a project still in its early experimental phase, Google notes that Bard might produce information that is inaccurate, misleading, or false. It encourages users to double-check the chatbot’s responses and test for errors, bugs, and vulnerabilities before using it for any independent works. Even so, the brand is confident that Bard’s new coding capabilities can be beneficial in assisting users in their own projects.

Google said other tips include the prompt could you please make that code faster. Another easy prompt to use is find error handling clauses you might have missed.

Bard was released as Google’s chatbot rival to OpenAI’s ChatGPT, which is also the power behind Microsoft’s Bing chat. While Bard has similar functions to ChatGPT, a report from Bloomberg indicates that some Google employees have little faith in the chatbot and feel that the project was rushed to launch in an effort to compete with OpenAI and Microsoft.

Notably, code debugging and code generation were some of the many interesting tasks users showcased on ChatGPT when the chatbot first became popular. However, the tool has its own challenges, such as high-traffic and capacity issues. OpenAI is also struggling to keep up with the costs that it takes to maintain its operations.

With Google’s latest update of Bard, this could be an opportunity for the brand to grab the attention of those interested in a specific niche of generative AI tools and use the ever-changing landscape to its benefit.

Editors' Recommendations

Fionna Agomuoh
Fionna Agomuoh is a technology journalist with over a decade of experience writing about various consumer electronics topics…
Google might finally have an answer to Chat GPT-4
ChatGPT versus Google on smartphones.

Google has announced the launch of its most extensive artificial intelligence model, Gemini, and it features three versions: Gemini Ultra, the largest and most capable; Gemini Pro, which is versatile across various tasks; and Gemini Nano, designed for specific tasks and mobile devices. The plan is to license Gemini to customers through Google Cloud for use in their applications, in a challenge to OpenAI's ChatGPT.

Gemini Ultra excels in massive multitask language understanding, outperforming human experts across subjects like math, physics, history, law, medicine, and ethics. It's expected to power Google products like Bard chatbot and Search Generative Experience. Google aims to monetize AI and plans to offer Gemini Pro through its cloud services.

Read more
The world responds to the creator of ChatGPT being fired by his own company
Sam Altman at the OpenAI developer conference.

The company behind ChatGPT and GPT-4 has dropped its CEO and co-founder, Sam Altman. According to a blog post from OpenAI: "Mr. Altman’s departure follows a deliberative review process by the board, which concluded that he was not consistently candid in his communications with the board, hindering its ability to exercise its responsibilities. The board no longer has confidence in his ability to continue leading OpenAI."

Those sound like some serious allegations, despite being intentionally vague. The timing of a later afternoon blog post on Friday make the announcement even more eyebrow-raising. There's been plenty of speculation about the reason behind the sudden departure, but nothing clear has risen to the surface just yet.

Read more
Google tackles scammers offering malware-laden ‘Bard’ tool
A person holds a phone with the Google logo and word 'Bard' on the screen. In the background is a Google Bard logo.

Google has revealed that it’s suing alleged scammers who are offering malware-laden “generative AI” software called Bard -- the same name as Google’s own generative AI tool.

Google filed the lawsuit in a California court on Monday, accusing the Vietnam-based group of creating pages for social media sites -- mainly Facebook -- that include ads for “Bard” software.

Read more