In addition to being able to generate code, Bard can now provide explanations for snippets of code. This can be especially useful if you’ve just started learning programming, as it will show you why a particular block has its output. And of course, Bard can now also help you debug code that isn’t quite working as you’d like.
Google acknowledges that at this point, Bard may spit out code that “does not produce the expected output” or code that is incomplete. The tech giant recommends double-checking and testing your responses first. In fact, Bard can debug its own output if you find that it’s returning an error – just type “This code doesn’t work, please fix it.” Finally, if you’re not a programming beginner but still need help, you can ask the chatbot to optimize your code by making it faster or more efficient.
The tech giant opened up access to its AI chatbot in March, though it still has a ways to go before it reaches the popularity ChatGPT enjoys today. To note, ChatGPT has the ability to write and improve existing code in many programming languages, so giving Google Bard the capability is probably inevitable. Google is also continually improving Bard in other ways and is rolling out the first upgrade powered by a new language model called PaLM. A few days back the companyexperiment updatepage where you can see all the changes Bard has gone through as it adds even more features and fixes bugs.