Google gives Bard the ability to generate and debug code – By Mariella Moon (Engadget) / April 21 2023
Coding has apparently been a top request by users
Google’s Bard chatbot now has the capability to help you with programming tasks. The tech giant said that coding has been one of its users’ top requests, and now it has given Bard the ability to generate, debug and explain code. Bard can now write in 20 programming languages, including C++, Java, JavaScript and Python. It now also features integration with Google’s other products and can export code to Colab, the company’s cloud-based notebook environment for Python, as well as help users write functions for Sheets.
Aside from being able to generate code, Bard can now provide explanations for snippets of code. It could be especially useful if you’ve only just started learning programming, since it will show you why a particular block has the output that it has. And yes, Bard can now also help you debug code that isn’t quite working like you want it to.
Google admits that at this point, Bard might spit out code that “doesn’t produce the expected output” or code that’s incomplete. The tech giant advises double-checking and testing its responses first. In fact, Bard can debug its own output if you find that it’s returning an error — just type in “this code didn’t work, please fix it.” Finally, if you’re not a programming beginner but still need a help of help, you can ask the chatbot to optimize your code by making it faster or more efficient.
CONTINUE > https://www.engadget.com/google-gives-bard-the-ability-to-generate-and-debug-code-130024663.html