Prompting with Copilot

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 มิ.ย. 2024
  • If you want to learn how to use GitHub Copilot, the AI pair programmer that helps you write code faster and better, then this video is for you.
    👉 Install & start your free trial: aka.ms/get-copilot
    0:00 Introduction to prompting
    0:44 Prompting a single file: parsing JSON
    5:23 SQLAlchemy 2.0 example
    8:07 Prompting in Django MVC example
    13:02 Summary
    More info: github.com/features/copilot
    Quick startup guide: docs.github.com/en/copilot/qu...
    Host: Pamela Fox
    #GitHubCopilot #AIPairProgrammer #OpenAICodex #CodeGeneration #python #prompting
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 17

  • @iChrisBirch
    @iChrisBirch ปีที่แล้ว +10

    From trial and error I had suspected that having particular files open would help with context. I was also directly prompting (both in the chat window and inline comment) "use the open file ..." but nice to see I don't have to directly specify that. Thanks for the examples and straightforward presentation.

  • @JoseAguilar-vt9zt
    @JoseAguilar-vt9zt ปีที่แล้ว +1

    In my case something I have been doing is writing examples of the input and outputs expected of a method/function as comments (part of the function documentation). Copilot picks it up and generates a method that works many times. And the method is then well documented as well, as a bonus.

  • @jonathan10543
    @jonathan10543 ปีที่แล้ว +10

    I always keep too many tabs open!! I'm already getting better results after closing some files. Thanks!

  • @codecaine
    @codecaine 11 หลายเดือนก่อน

    Excellent presentation

  • @modoulaminceesay9211
    @modoulaminceesay9211 ปีที่แล้ว +2

    I have tried the copilot with vscode insider best thing to ever happen to me

  • @lostpianist
    @lostpianist ปีที่แล้ว

    Great, thank you.

  • @lako2023
    @lako2023 ปีที่แล้ว +6

    For small one-off scripts like this Copilot works. For real projects though there needs to be proper information what Copilot understood about that project and which files it has processed to gain that information. We have lots of configuration files for e.g. linters as well as naming standards, plenty of additional rules for the structure of code, comments etc. (which can't be defined in a configuration file but have separate tests). It's completely unclear if Copilot understands any of that, sometimes I get good suggestions while working in a file, in many cases the code though is really subpar (too basic, too different etc.).
    Why not chat with Copilot on initialization in a project to give it more context? If it is unsure about something (e.g. naming of variables, methods etc. in the project), Copilot could just ask the user and then present it's understanding in a tab or rather a new configuration file which could be synced to other devs.

    • @PamelaFox
      @PamelaFox ปีที่แล้ว +1

      Ah, interesting observation re naming standards. I think it'd be worth experimenting with explicit instructions at the top of file like "This file follows the naming conventions from standards.txt" and opening "standards.txt" at same time. It'd be great if you didn't have to provide that, but I suspect that right now Copilot isn't getting all that context.

  • @snithfferx
    @snithfferx 10 หลายเดือนก่อน

    I feel the lack of languages, but as many, open the files base that I need to use, give copilot a good context, buuut... it take a bit of time to copilot get what you are trying to do. I talking about PHP by the way.
    Hope some day this could improve.

  • @yaruuvva
    @yaruuvva ปีที่แล้ว

    Does this trick with having other files opened to provide additional context works in Visual Studio? (not VS Code)

  • @gillesashley9314
    @gillesashley9314 6 หลายเดือนก่อน +1

    Seems the next skill as developers is to learn how to use AI tools. Done!

  • @systechadmin8368
    @systechadmin8368 10 หลายเดือนก่อน

    Is there subscription plan for educational institute ?

  • @lostpianist
    @lostpianist ปีที่แล้ว

    What famous scientist lady is in the middle portrait behind you? Is it Jocelyn Bell?

  • @feeltheeffect85
    @feeltheeffect85 8 หลายเดือนก่อน

    Mam when is the copilot x getting released?

  • @YousefSh
    @YousefSh ปีที่แล้ว +1

    talk for talk in talks if tag in talks tag

    • @JBJHJM
      @JBJHJM 7 หลายเดือนก่อน

      sounds kinda poetic huh? 😂

  • @Netryon
    @Netryon ปีที่แล้ว

    Nobody do anything here anything with python unless you are music reviewer in capital.