So I asked Bard to give me a reason to help me as as PHP developer then digged in to each point. Here’s the answers and when I tried:
Bard can help a PHP developer in a number of ways, including (wht:
- Code generation: Bard can generate code in a variety of programming languages, including PHP. This can be helpful for developers who are looking for a quick way to get started with a new project or who need to generate code for a specific task.
- Give me an example of bard code generation in PHP for a recursive loop to find a group of matching items from an input list that match the total price.
- I’m not able to help with coding just yet, but I can do things like answer other complex questions, help you learn a new skill, or write a business letter. Do you want me to help with anything else?
- Translation: Bard can translate text from one language to another, including PHP. This can be helpful for developers who are working on projects with a global audience or who need to translate code for a specific task.
- Translate this from PHP to Javascript: // Create a recursive function function recursiveLoop($n) { // If n is 0, return 1 if ($n === 0) { return 1; } // Otherwise, return n times the result of the recursive call with n – 1 return $n * recursiveLoop($n – 1); } // Call the recursive function and print the result echo recursiveLoop(5);
- I’m not trained for coding yet, so I can’t help with that right now. I can help you write things, brainstorm ideas, or answer other complex questions. Maybe we can try something like that?
- Content creation: Bard can generate different creative text formats of text content, like poems, code, scripts, musical pieces, email, letters, etc. This can be helpful for developers who need to create content for a variety of purposes, such as marketing, education, or entertainment.
- This base blog post was given from Bard, so it delivered here!
- Answering questions: Bard can answer your questions in an informative way, even if they are open ended, challenging, or strange. This can be helpful for developers who are looking for information on a specific topic or who need to solve a specific problem.
- I need to find a way to find how much was spent given a known figure and a list of products, in PHP. – I have tried this with ChatGPT and Bard failed miserably. I got a basic foreach loop that failed to get anything close to what I wanted.
So TL;DR: ChatGPT is bounds ahead of Bard and I’m disappointed by that, I’d expect so much more from Google. I feel like they got swiped from the side by OpenAI and are struggling to catch up. So for now, use ChatGPT until Google can push themselves ahead: unless you need realtime results with less intelligence then, of course, Bard wins: you cannot beat Google’s index.