Google Bard Vs. Chat GPT – Who Codes Better? Let’s See… Google Bard Demo

So I just had a great
suggestion from Ibrahim, asking. If we could see if Google Bard can do
code, I didn't even think to do that. I Think that's a great idea. So that's one of my favorite
uses of chat g p T so far is coming up with coding Questions. So let's see if Google
Bard can do some coding. Okay, so let's say, can you write.

Me A script to. Let's say a Python. Script. to, Get. YouTube video. Views. From the YouTube API and. Put them into a Google sheets. Sheet. With Google sheets. API. Let's see what it Google
Bard comes up with. Okay, so it says, sure. Here's a Python script that can be
used to get YouTube video views. I have done a number of things with the. Various Google APIs. And let's see if this matches up. Yep. That all looks Obviously it should be
able to figure out the Google APIs. Okay. So it's creating a. List. I think it might be missing some
credentials, some authorization stuff. So let's ask. How. Do I handle.

Authorization. With this. Script. Okay, so you need to use the OAuth
2.0, that is one way to do it. That. I've definitely used a bunch of times. Create a client ID. Okay. Wow. Yeah, this is. This is really great. All right, let's try another one. Let's reset the chat. This is inspired by an app that I
built for my sister a while ago. Can you write me? A. Script that. Gets. Office quotes. From an API and then. Sends them. sends one quote. Per day to someone. Based. On a phone number. See what it comes up with. Okay. This says unable to help you with that.

Let's see. Can you write me a script? that gets Quotes from the office. Through. an API. There's another whiff. Okay. Interesting. So let's see if chat. G P T can do that. All right. I'll put the same question in, can you
write me a script that gets office. Quotes from an API and
then sends one per day. So I guess they'll have to figure out.

What I mean by office. Okay. Yep. The office quotes API or the office API
use a programming language of your choice. So Chad GD is winning on this one. Okay. Using messaging service such as twi. So I used apple. Shortcuts. So, but this is probably how
you'd have to do with Python. And it gives you example code. Okay. So the coding capabilities,
not quite up to par and this even has this copy code thing. I haven't seen that yet in Google Bard. So far, Chat, G p t is way ahead on. Coding. As far as my initial tests. All right, let's try another one with. App script stuff and see if Google Bard
can do better with just Google stuff.

But so far. Oh, yeah. Unable to help you with that. So, I don't know if this is a
usage thing or just, it's just the first version, but so far. Not even close to chat, G P
T's ability to help with code. Let me know if you have any other
things that you want me to test with Google Bard, and we can try it out..

As found on YouTube