Google Bard Can Now Write Code In Over 20 Programming Languages

Google’s Bard has achieved a new feature that enables users to write and debug code in over 20 programming languages.

bard doing coding

In a blog post, Paige Bailey, the Group Product Manager at Google Research, explained that Bard can now assist with various programming and software development tasks, including code generation, debugging, and explanation.

Bard’s programming capabilities contain over 20 languages, including popular ones like C++, Go, Java, JavaScript, Python, Typescript, etc. It can also help you with writing functions for Google Sheets. Additionally, Python code can be directly exported to Google Colab without the need for copying and pasting, streamlining code execution in web browsers.

5 Bard Coding Product Generation GIF Blog Social 20001124
Bard can now generate code for you via Google Blog

Bard can assist with debugging if the generated code produces error messages by instructing the chatbot to “fix it” upon notification. If there is any code segment that you do not understand, Bard can provide an explanation, and you can request it to review specific code segments.

Ask Bard to explain code via Google Blog

For instance, you could ask Bard to “describe the code within the Google/jax GitHub repo.” Furthermore, if a particular code is not performing optimally, you can ask Bard to “increase the speed,” and it will begin optimizing the code.

3 Bard Coding Product Debug GIF Blog Social 20001124
Bard helps debug error messages via Google Blog

According to Bailey, Bard’s code generation, debugging, and explanation capabilities “are especially useful for those who are new to programming.” However, Google emphasizes that Bard is still in its early experimental stage and may provide “inaccurate, misleading, or false information while presenting it confidently.”

For those concerned that Bard may quote verbatim from an open-source project without attribution, Google assures users that citations will be included if Bard quotes extensively from a project.

Related Stories:

🙏 Help Us By Sharing This Article 👇: