Google's Bard can now generate, debug, and explain code in 20 programming languages, including C++, Java, and Python.
Google announced the new features for its AI chatbot in a blog post today .
- Bard can now also optimize code for greater efficiency, translate code between languages, and help debug source code written by itself or users.
- Newer programmers can input code snippets into Bard, which will provide a breakdown of the language and explain what the code does.
- The chatbot can also help users write functions for Google Sheets and export code to Google's Colab data analysis and machine learning tool.
- Google still warned that Bard might not generate complete code or the "expected output" and recommends that users double-check and test its outputs.
- Bard's competitors, OpenAI's ChatGPT and Microsoft's Bing Chat, offer similar programming capabilities, as does Microsoft-owned GitHub's Copilot assistant .