Google Bard

Today, Google announced that Bard is now capable of code generation, code debugging, and explanation. It is important to note that ChatGPT and Bing Chat already offer similar capabilities.

An animated GIF showing how Bard can generate code and export to Colab.

Google Bard will support code generation, code debugging, and explanation in more than 20 programming languages including C++, Go, Java, Javascript, Python and Typescript. It will also allow you to export Python code to Google Colab in a single click. Finally, it can also help you in writing functions for Google Sheets.

You can also use Bard to understand a snippet of code.

Animated GIF showing someone ask Bard to explain code within the google/jax GitHub repo.

Bard will also be helpful for debugging.

An animated GIF showing a prompt in Bard for help debugging a file and Bard's response with debugging instructions.

Like ChatGPT and Bing Chat, the code generated by Bard may not produce the expected output, or it may produce incomplete code snippet. So, you should be careful before incorporating Bard’s responses. You should test and review code for errors, bugs and vulnerabilities before using it.

With new coding capabilities, we’re excited to apply generative AI to accelerate software development, inspire innovation, and help people solve complex engineering challenges.- Paige Bailey, Group Product Manager, Google Research