Google’s Bard has achieved a new feature that enables users to write and debug code in over 20 programming languages.
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 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.
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.
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.