Github Copilot vs. ChatGPT: Which one should you use, and when?

Ғылым және технология

Everyone is familiar with #chatgpt at this point. It has been literally everywhere lately - the subject of countless videos, blogs, and news articles. However, if you're a technician, aspiring developer, or even senior developer, did you know Github's #copilot uses the same #ai technology and is far more capable at increasing your efficiency, productivity and overall output than ChatGPT?
Well, in my opinion, Copilot is vastly superior to ChatGPT when it comes to writing and generating reliable code, though there is still a time and place for ChatGPT in the code-writing process, as well. Check out this video to learn the value proposition, when to use which tool, and why I'm so excited by Github Copilot.
0:00 Intro
0:38 Why am I talking about this?
1:06 What is Copilot?
2:15 What will I see in this video?
2:56 Quick look at Copilot's website
4:41 Asking ChatGPT to write PowerShell
5:49 Iterating on ChatGPT's script
6:42 More iteration to fix the script
7:20 What I liked/disliked about ChatGPT's response
8:38 If ChatGPT is so good, why use something else?
10:10 Feeding Copilot the ChatGPT prompt
11:46 Exploring Copilot's basic capabilities
12:40 Copilot gives me full script options
16:02 Copilot gives me autocomplete suggestions
22:13 Combining methodologies
23:20 Value proposition
25:00 So is Copilot the right tool for the job?

Пікірлер: 54

  • @gillesashley9314
    @gillesashley93149 ай бұрын

    This is definitely a good video. I use copilot to generate the codes, when I do not understand the codes, I let ChatGPT do the explanation.

  • @DoingItWithAI

    @DoingItWithAI

    9 ай бұрын

    It's a great combo. Check out Copliot Chat for VS Code. It brings these concepts together into one spot, and really streamlines the context switching between the two services. Thanks for watching!

  • @aar021
    @aar021 Жыл бұрын

    Best Copilot overview at the moment. Thank you 🙏

  • @DoingItWithAI

    @DoingItWithAI

    Жыл бұрын

    Happy it helped, Alvaro!

  • @anthonyapodaca1332
    @anthonyapodaca1332 Жыл бұрын

    Great Video! Interesting on how you can leverage both techs to get you where you need to go.

  • @DoingItWithAI

    @DoingItWithAI

    Жыл бұрын

    Using ChatGPT to give me a place to start then iterating with Copilot's assistance has been my favorite approach in using these tools together. Glad you found it interesting, Anthony!

  • @dsrichmond
    @dsrichmond Жыл бұрын

    Very cool stuff! And you were right before correcting yourself - parameters are just called parameters. Nouns are the 2nd part of the Verb-Noun format of cmdlet names.

  • @DoingItWithAI

    @DoingItWithAI

    Жыл бұрын

    Thanks for watching, David. Can you tell I don't spend a lot of time with PS? 😂

  • @HerrThomasE
    @HerrThomasE Жыл бұрын

    thank you very much for this detailed Video. it gives me very good anders Standing what Copilot is.

  • @DoingItWithAI

    @DoingItWithAI

    Жыл бұрын

    You're very welcome. Thank you for watching!

  • @maverickmace9100
    @maverickmace91006 ай бұрын

    Im learning powershell atm. Copilot is incredible. It's like it reads my thoughts when it wants to auto complete

  • @DoingItWithAI

    @DoingItWithAI

    6 ай бұрын

    Couldn't agree more - - it's eerily good. But that's the beauty of LLMs, they're designed to anticipate what comes next.

  • @tmszcncl
    @tmszcncl Жыл бұрын

    Great video :) Do you think it is possible to use both copilot and tabnine? I tried it in rubymine, but I had a feeling that tabnine just was not working at all (there were only copilot's suggestions). Maybe it does not make sense :)

  • @DoingItWithAI

    @DoingItWithAI

    Жыл бұрын

    Good question, Tomasz. I would say use one or the other. My guess is that they'd be fighting each other given they do the essentially the same things. My next video is going to be on Copilot Labs, which is an additional extension for VS Code that makes Copilot substantially more powerful. You might find that that solves your needs. Thanks for watching!

  • @tmszcncl

    @tmszcncl

    Жыл бұрын

    ​@@DoingItWithAI Thanks for the answer. I will stick with copilot for now - somehow I like it better. I already tried this copilot labs with vs code and I'm a little sad that there is no version planned for jetbrains products. But hopefully there will be something similar in the future :) Looking forward for your video about it :)

  • @sharulhafiz6312
    @sharulhafiz6312 Жыл бұрын

    Your keyboard sounds and feel smooth, which mechanical is that? Thanks for the video

  • @DoingItWithAI

    @DoingItWithAI

    Жыл бұрын

    You're welcome! I'm using a Logitech MX Keys, non mechanical. It's a great keyboard especially if you have multiple devices, as it has its own built-in KVM switch (minus the video and mouse, of course).

  • @prashantvedpathak3067
    @prashantvedpathak3067 Жыл бұрын

    Thanks for showing new things in AI.... Co-Pilot is amazing no doubt.... I will definitely try this!!!

  • @DoingItWithAI

    @DoingItWithAI

    Жыл бұрын

    Thanks Prashant! Let me know what you think. I use it everyday now, it's an amazing tool to boost productivity.

  • @Rex88282
    @Rex88282 Жыл бұрын

    Yes is helpful ! I use it ! Nice video ! Codex also awesome.

  • @DoingItWithAI

    @DoingItWithAI

    Жыл бұрын

    I agree, Codex rocks. Thanks christos!

  • @MrMorvar
    @MrMorvar Жыл бұрын

    Nice comparsion but I got a few questions: 1. Does Copilot have up-to-date GitHub data access? ChatGPT fails to generate new ECS code for Unity game engine, as the API just changed into 1.0 a few months ago. 2. Does it try to learn your whole project to try understand what's the whole thing about or are the solution offerings only based on the given prompt?

  • @DoingItWithAI

    @DoingItWithAI

    Жыл бұрын

    Hey Morvar. Thanks for watching. Here's my understanding in terms of the questions you asked: 1. Copilot was trained on public code. My assumption is that it continues to be trained on public code, but I'm not sure at what cadence or level of recurrence that training is taking place. That's not something they have disclosed. 2. Copilot currently doesn't scale in that way, i.e., it doesn't understand your codebase as a whole. It only provides suggestions within the context of the file you're currently working on.

  • @Mpanagiotopoulos

    @Mpanagiotopoulos

    Жыл бұрын

    @@DoingItWithAI Is there any AI application that understands the whole codebase or at least a way for ChatGPT to handle bigger questions in reference to huge codes.I think if chat GPT can read and proccess files like .py and according to what he reads can give you code specific for your problem,that would be great

  • @DoingItWithAI

    @DoingItWithAI

    Жыл бұрын

    @@Mpanagiotopoulos I'm not aware of anything that can read entire projects/codebases and understand them contextually yet. I'm sure that's coming but right now things are more piecemeal.

  • @Mpanagiotopoulos

    @Mpanagiotopoulos

    Жыл бұрын

    @@DoingItWithAI When I wrote this comment GPT-4 was not released.Now I updated to GPT-4 and it takes up to 25.000 words,which is great and way better at coding.Although it still can't read files as this would require unimaginable computing power to handle million requests simultaneously, but I guess this is coming sooner or later.Definitely the next 2 years are going to reshape industries with all these rapid advancements in AI!

  • @JoaoVitor-gm2yf

    @JoaoVitor-gm2yf

    11 ай бұрын

    @@Mpanagiotopoulos They announced copilotX, which is basically copilot that "sees" all of your current project files on VSCode + a chat tab on the side that you can also talk to. I dont think its available yet, but it looks amazing

  • @CinemindParadox
    @CinemindParadox7 ай бұрын

    Was this 3.5 ChatGPT or 4.0? Free version or have you paid for it?

  • @DoingItWithAI

    @DoingItWithAI

    7 ай бұрын

    3.5 and I do pay for the subscription.

  • @cileg_
    @cileg_ Жыл бұрын

    But does Copilot work with Remix for Ethereum, Polygon, BSC etc?…

  • @DoingItWithAI

    @DoingItWithAI

    Жыл бұрын

    I don't know about integrating Copilot with the Remix IDE, but there does appear to be a Remix extension in VSCode, so maybe if you load that in with Copilot already installed it would have some value. Worth a shot? I know people are using Copilot to generate tests for contracts, but that's all out of my wheelhouse so I'm not gonna be much help beyond that. Sorry about that.

  • @chikosan99
    @chikosan99 Жыл бұрын

    Great! does can help with refactoring code ?

  • @DoingItWithAI

    @DoingItWithAI

    Жыл бұрын

    Great question! I think you could say that it has the potential to help with refactoring, since it can suggest different patterns to accomplish the same output. As far as being able to tell it to refractor a code block, I've never tried that, but I'd be very curious to give it a shot!

  • @hmdz150
    @hmdz15010 ай бұрын

    I just finished a python module that includes 6000 lines of code in less than 3 hours using CoPilot. Before than, I was using ChatGPT and the process of copy pasting comments into Chat GPT prompt and back was really slow. Also, the code frame in ChatGPt web interface is limited and beyond a line it breaks the code out of that frame and mess everything up. Without Copilot my project would take days, if not weeks, to finished due to the huge amount of code I had to type (repetitive tasks)

  • @DoingItWithAI

    @DoingItWithAI

    10 ай бұрын

    Try Copilot Chat. It takes all the conversational stuff from ChatGPT and brings it straight into the IDE. Huge time saver compared to going back and forth between ChatGPT and your IDE. My next video will be on this topic. Couldn't agree more with your point, though - - Copilot is amazing for the work you described.

  • @caty863
    @caty8638 ай бұрын

    The pricing model of Copilot ($10/month) is awful for occasional developers. They should have options, including paying by number of suggestions made to you.

  • @DoingItWithAI

    @DoingItWithAI

    7 ай бұрын

    Agreed. I use this probably 15 days out of every month. Would be nice to have some cheaper options.

  • @MrLordgiblet
    @MrLordgiblet Жыл бұрын

    i think you meant to say ctrl-enter

  • @DoingItWithAI

    @DoingItWithAI

    Жыл бұрын

    Oops! Probably so. Thanks for the heads up.

  • @labibchy9293
    @labibchy929311 ай бұрын

    23.25 is the point you are looking for

  • @DoingItWithAI

    @DoingItWithAI

    11 ай бұрын

    Sorry that you didn't find more value in the video as a whole. I'm still new at this, hopefully I will get more concise over time. Thanks for watching!

  • @orion33
    @orion3311 ай бұрын

    Maybe for VS Code it works fine, but for VS Community it's just awful. It's terribly slow, inserts code in the middle of the page absolutely breaking syntax. So all in all you get absolutely nonfunctional code. I asked to draw a five-pointed star using SharpDX.Direct2D1 😆

  • @DoingItWithAI

    @DoingItWithAI

    11 ай бұрын

    Good to know. I haven't tried Copliot with full VS so I appreciate the insight. Thanks for watching!

  • @chandywerks
    @chandywerks Жыл бұрын

    "...plugins for Vscode, Neovim, Visual Studio (if you're a full time developer)" I'm a full time developer and I use neovim. How much is microsoft paying you for these videos XD

  • @DoingItWithAI

    @DoingItWithAI

    Жыл бұрын

    I hear neovim is great, but I'm not familiar with it. I've grown my career in the Microsoft space, and if Microsoft wanted to sponsor these videos I'd happily accept.

  • @elitehaxxor8025
    @elitehaxxor802511 ай бұрын

    The AsPlainText parameter doesn't actually store your password as plain text, it means that the cmdlet is accepting plain text as input for the parameter which will then be converted to the System.Security.SecureString type. AI is amazing though, it's unfortunate that people think it's going to be the downfall of development though.

  • @DoingItWithAI

    @DoingItWithAI

    11 ай бұрын

    Yeah, my point was you'd have to store your password in the script as plain text, which I wouldn't recommend necessarily. I do appreciate the clarification on your part for my viewers, though!

Келесі