7 Tweets 33 reads May 12, 2023
Google's Bard, a rival to ChatGPT, is now accessible worldwide!
Check out these mind-blowing capabilities of Bard (for developers):
1. Convert your code to specific code guidelines
Prompt:
"Rewrite the code below following the Google style guidelines for javascript. {enter code}"
2. Write code tests
Prompt: "Write test cases for the main edge cases that could happen to the below code snippet. First outline the test cases you'll write. Second, write the test cases in javascript using the Jest framework. {enter code}"
3. Write code comments
Prompt:
"Regenerate the code snippet below, but please include comments to each line of code {enter code}"
4. Code translator
Prompt:
"Translate this code from JavaScript to Python {Enter code}"
5. Code explainer
Prompt:
"What will the following code snippet do {enter code}"
6. Find bugs
Prompt:
Find the bug in the following code {code}

Loading suggestions...