Prompting with Copilot

Поделиться
HTML-код
  • Опубликовано: 28 май 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.

  • @jonathan10543
    @jonathan10543 Год назад +10

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

  • @JoseAguilar-vt9zt
    @JoseAguilar-vt9zt 11 месяцев назад +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.

  • @modoulaminceesay9211
    @modoulaminceesay9211 Год назад +2

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

  • @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.

  • @codecaine
    @codecaine 11 месяцев назад

    Excellent presentation

  • @lostpianist
    @lostpianist 11 месяцев назад

    Great, thank you.

  • @yaruuvva
    @yaruuvva Год назад

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

  • @systechadmin8368
    @systechadmin8368 9 месяцев назад

    Is there subscription plan for educational institute ?

  • @gillesashley9314
    @gillesashley9314 6 месяцев назад +1

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

  • @snithfferx
    @snithfferx 9 месяцев назад

    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.

  • @feeltheeffect85
    @feeltheeffect85 8 месяцев назад

    Mam when is the copilot x getting released?

  • @lostpianist
    @lostpianist 11 месяцев назад

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

  • @YousefSh
    @YousefSh 11 месяцев назад +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.