Coding with an AI pair programmer: Getting started with GitHub Copilot

Поділитися
Вставка
  • Опубліковано 28 тра 2024
  • The explosion of programming languages and frameworks has ironically made development more difficult. Developers need to remember different syntax across different environments, and are finding that a large percentage of code they write is tedious. Acting as an AI pair programmer, GitHub Copilot can help a developer offload those tasks and instead focus on the bigger picture. Let's explore how to get started with GitHub Copilot, its capabilities, and how to make the most out of the tool.
    ▬▬▬▬▬▬ TIMESTAMPS ⌚ ▬▬▬▬▬▬
    00:00 - Introduction to GitHub Copilot
    01:30 - GitHub Copilot Mechanics
    03:00 - Data Handling in GitHub Copilot
    04:33 - Adapting Workflow with Copilot
    06:03 - Effective Prompt Crafting
    08:37 - GitHub Copilot Coding Demo
    10:21 - GitHub Copilot Best Practices
    12:08 - Django Modeling with Copilot
    14:10 - Fine-Tuning Django Code
    16:43 - Naming Conventions for Copilot
    19:02 - Django Views Optimization
    21:20 - Creating Django Views
    23:08 - Using Comments and Examples
    25:38 - Refining Code with Copilot
    28:08 - Key Takeaways and Practices
    29:38 - Conclusion
    Stay up-to-date on all things GitHub by connecting with us:
    UA-cam: gh.io/subgithub
    Blog: github.blog
    X: / github
    LinkedIn: / github
    Insider newsletter: resources.github.com/newsletter/
    Instagram: / github
    TikTok: / github
    Facebook:
    About GitHub
    It’s where over 100 million developers create, share, and ship the best code possible. It’s a place for anyone, from anywhere, to build anything-it’s where the world builds software. github.com
  • Наука та технологія

КОМЕНТАРІ • 144

  • @eunomi
    @eunomi 4 місяці тому +2

    I'm just getting started with Copilot. I have to say this is a GREAT video.

  • @rgeisert
    @rgeisert 22 дні тому +1

    This instructor taught me MVC. Love his teaching style. To everyone distracted by the nails...they are still in beta. With Microsoft's weight behind it, we will all have purple nails in 2 years.

    • @gaiustacitus4242
      @gaiustacitus4242 10 днів тому

      Fortunately, I'm an Apple guy so my nails will remain the color of my choice.

  • @user-ov8ei5iu6h
    @user-ov8ei5iu6h 4 дні тому

    คุนอาจหวังดีใช่ฉัยยังต้องต่อยเปนไปอย่างเพราะฉันต้องศึกษาและ ก่อนจะได้เข้าใจกันและกัน โปรดเข้าใจ

  • @omureddy
    @omureddy Місяць тому

    fantastic job, very useful , thank you sir!!

  • @user-gg8we2ot4b
    @user-gg8we2ot4b 5 місяців тому +1

    Thank you for Good Demo!

  • @Kimomaru
    @Kimomaru 2 місяці тому

    Excellent presentation!

  • @hemantmhase9031
    @hemantmhase9031 3 місяці тому +2

    GitHub Copilot has great potential, I wish to see copilot gets trained on the latest data. Right now it's only trained till September 2021 which is way behind.

  • @gaiustacitus4242
    @gaiustacitus4242 10 днів тому

    GitHub Copilot will not only generate different output in response to the same prompts on different days but will also generate the same incorrect output for different prompts regardless of how clearly the specification is rewritten. Sometimes it is necessary to start by typing in the exact name of a function or method that exists in a GitHub repository in order to have Copilot generate the proper output. Of course, if you already know the name, then you've likely looked it up and can just copy and paste the code.

  • @PuffNSnort
    @PuffNSnort 5 місяців тому +4

    How do you stop it from uploading config files?

  • @alone-8888
    @alone-8888 Місяць тому +2

    00:00 - GitHub Copilot 介绍
    01:30 - GitHub Copilot 的工作原理
    03:00 - GitHub Copilot 中的数据处理方式
    04:33 - 使用 Copilot 调整工作流程
    06:03 - 如何有效构建指令提示
    08:37 - GitHub Copilot 编程演示
    10:21 - GitHub Copilot 的最佳实践建议
    12:08 - 利用 Copilot 进行 Django 模型构建
    14:10 - 对 Django 代码进行细节调优
    16:43 - 为 Copilot 设置命名规则
    19:02 - Django 视图的优化技巧
    21:20 - 创建 Django 视图的方法
    23:08 - 利用注释和示例代码
    25:38 - 使用 Copilot 精细化代码
    28:08 - 关键要点与实用技巧
    29:38 - 结语

  • @shriprasadmarathe7391
    @shriprasadmarathe7391 3 місяці тому +1

    Great video !. There is typo in `preselect` . Not sure, was that the reason it have not picked up id and name.

  • @pleanermail
    @pleanermail 5 місяців тому +6

    Always Sprinkles✨
    High information per minute with personality.
    Thanks for this video Christopher 😚👌

  • @aspiringcoder2024
    @aspiringcoder2024 5 місяців тому +6

    The content of this demo is great. Christopher Harrison did a good job in making the material easy to absorb. The timestamps provided are very helpful.
    With regard to the audio, the volume of this video is incredibly LOW. Even on an expensive Mac Pro with Bose headphones, I'm having to crank the volume all the way up.
    Dear @GitHub: Please update your recording technology! You have some fantastic communicators - you're disrespecting them and your audience with your mediocre recording technology.

  • @jjgravelle
    @jjgravelle 6 місяців тому +47

    Nailed it... 😎

    • @g.c955
      @g.c955 5 місяців тому +8

      I see what you did there 😉

    • @djcardwell
      @djcardwell 5 місяців тому +3

      🤣🤣🤣🤣🤣🤣🤣 MADE MY DAY!!!

    • @jonathanmelhuish4530
      @jonathanmelhuish4530 5 місяців тому

      But only half?

    • @runewinsevik8471
      @runewinsevik8471 Місяць тому +1

      Unfortunately the nail job took about 75% of the attention...

  • @magdalenaszulc8997
    @magdalenaszulc8997 5 місяців тому

    Great I wish to try

  • @ramp2011
    @ramp2011 5 місяців тому +1

    Great video. I am curious who is it different than prompting chatgt directly to get the same code? What advantages do I have from using this? Thank you

    • @heikoh.1618
      @heikoh.1618 4 місяці тому

      Its about context. You have a limited input size. And placing the comments in code dictates where the code will go. It is kinda a natural flow. Just getting into it, but i have been in IT for ages.

  • @user-jm2zh6jv5e
    @user-jm2zh6jv5e 3 місяці тому

    Such a great intro and demo. Very clear and easy to understand

  • @tamimiYoutube
    @tamimiYoutube 3 місяці тому

    Good job!

  • @vdmircea
    @vdmircea 4 місяці тому +1

    wow! it's amazing, "works shokingly well" in real-time inter-operating systems!

  • @InnocentiusLacrimosa
    @InnocentiusLacrimosa 5 місяців тому +2

    I would love for something like OpenAI api based queries so it would be use based costing instead of constant subscription. But I do not code for living so my use case ia different from professionals. Anyhow, these AI tools look very interesting as kind of "coding partners" or additional layer of abstraction.

    • @heikoh.1618
      @heikoh.1618 4 місяці тому +1

      i am trying to use it to teach my kid some coding... i think asking the right questions always has been my job, and now the AI actually listens ;)

  • @hedgefund996
    @hedgefund996 5 місяців тому

    Good Content

  • @user-ov8ei5iu6h
    @user-ov8ei5iu6h 4 дні тому

    คุณศึกษาฉันได้แต่ฉันก้อต้องผศึกกษาคุนกาอนวห้อุญาต ทุกบริการเคารพกฎและความเปนสาวนตัว

  • @Amd107
    @Amd107 3 місяці тому

    Did Microsoft used the code available on GitHub repos or to train this A.I. model? I mean they technically own all the code someone is pushing on GitHub

  • @geoffreycollins6627
    @geoffreycollins6627 5 місяців тому +5

    Why do I have an impression that there are more comments written by the developer than actual code written by the copilot? 🤔

  • @uabpsab
    @uabpsab 3 місяці тому

    I'm a bit late to the party..but perhaps someone will answer anyway...Can I use Github copilot if I dont use Github? If not, is there some other copilot that works without Github?

    • @webasdf
      @webasdf 3 місяці тому +1

      You have to have a GitHub account and pay through that. But you do not have to host your repository at GitHub if that's what you're asking.

    • @uabpsab
      @uabpsab 3 місяці тому

      @@webasdf thank you!

  • @veganphilosopher1975
    @veganphilosopher1975 3 місяці тому +8

    great intro. Love the presenter! rocking that polish 💅

  • @jannarkiewicz633
    @jannarkiewicz633 3 місяці тому +1

    If are anything like me and I know I am

  • @nikitphadke
    @nikitphadke 5 місяців тому +8

    This tab proximity condition is an awful layer over what is essentially a very good tool. And lets be clear, it is transparently a cost cutting measure to minimise context tokens. This will be sold shortly in the form of a premium layer and after a few development cycle the default will be to include the entire project in the context which is indeed the best thing to do. Currently a coder will have to go in and manually tab the files which will be affected by the work. This is kind of a best guess and increases the possibility of errors. What will happen when the answer is not expected? more prompts... more back and forth. purely because the context was not accurate. Ultimately costing more to guess who... Github!

  • @user-ov8ei5iu6h
    @user-ov8ei5iu6h 4 дні тому

    ฉันมัความรุ้ที่มาระกษาตระหนักแต่ละบริบทเสมอ จึงขออธิบายตามตรงนะจ้าต่า

  • @mahmudx
    @mahmudx 5 місяців тому +1

    Heyyyy! I used to watch you in MVA days. Are you still a dog owner?

    • @GeekTrainer
      @GeekTrainer 5 місяців тому +1

      Hey there!!! Absolutely am! We have a rescue American Staffordshire mix

  • @akashmilton
    @akashmilton 5 місяців тому +1

    The volume is less

  • @ashokchakravarthi1163
    @ashokchakravarthi1163 5 місяців тому +16

    Show the screen and explain, why show the person all the time

  • @muyivushafiq8389
    @muyivushafiq8389 6 місяців тому

    Awesome!

  • @SergiuTalnaci
    @SergiuTalnaci 3 місяці тому

    The big takeaway is DRY code will be dead and everyone will be writing 5x to 10x more code but will add tech debt with it.
    May the holy divine forces protect companies from devs who forget to also write tests for the code they generate with copilot.

  • @AbdulRehman1-
    @AbdulRehman1- 5 місяців тому +1

    Please help me GitHub perform wrong action.why it delete my account.and changes my project and profile without my permission.i am only single owner from Pakistan

    • @AbdulRehman1-
      @AbdulRehman1- 5 місяців тому

      Please help me

    • @ahmedshahzad7654
      @ahmedshahzad7654 5 місяців тому

      @@AbdulRehman1- Hey Abdul, could you please explain your problem in more detail. I am also from Pakistan and a user of Github Copilot so I might be able to help you out.

  • @Yonglee7015
    @Yonglee7015 5 місяців тому +5

    But your subscription price is really too expensive. Consumption levels in different countries are different. Have you not considered that different countries adopt different pricing strategies?

  • @duaneadamx
    @duaneadamx 5 місяців тому +3

    The audio is super low.

  • @JazevoAudiosurf
    @JazevoAudiosurf 5 місяців тому +1

    i do think that MS is much below their capabilities with this. i understand that it gets probabilistic at more advanced features and thus more expensive. i would still like to see this tech at the level where it just iterates and reflects until a whole feature is done

  • @Explorest
    @Explorest 5 місяців тому +2

    Audio volume is too low. Didn't expect this from a major channel like that of Github

    • @hoi-polloi905
      @hoi-polloi905 5 місяців тому

      no i think your playback device is subpar

  • @axeldaguerre7309
    @axeldaguerre7309 4 місяці тому

    Copilot is maybe ok for boilerplating, but apart from that it seems to be unable to handle complex task in a complex innovative source code. I never tested it, but after 3 videos explainning the coolness of this tool, I didn't see any code produced by it of something else than handle things developers have handle for decades on their website source code.

    • @belphegor_tv
      @belphegor_tv 3 місяці тому +1

      Maybe use it first before jumping to conclusions.

    • @axeldaguerre7309
      @axeldaguerre7309 3 місяці тому

      By first principle and by reading my comment you would know that even if it's great at what's doing, it cannot solve problems other than the examples I gave.
      I sort of use it in my daily web job where everything is already solved by libraries and frameworks. If it does, it means that the work you're doing is nothing more that a modification of what everyone is doing or has done in the past.
      I say that from experience: my current daily job is inside one of these big companies that can throw money at everything and use their monopoly to not having to care about innovation.
      Furthermore if you understand at what is inside an LLM, you understand that it's really not the right tool to create innovative code and architecture.
      I gain much time from it because the job require nothing more than boilerplates and make it works with pile of junk code between yours.
      My comment about being slower and providing no benefit at all (searching, understanding high level view of a project and more) is in my opinion still true.
      You currently can't trust it when you ask for something simple, how can you trust when it tries (and will hallucinate in doing so) to regurgitate how a complex source code works, because I wouldn't. More, you loose insights if you solely rely on it or will still gives you wrong understanding about some piece of it if you try to use it (detrimental compared to if you don't use it)
      .
      @gor_tv

    • @vncstudio
      @vncstudio 17 днів тому

      That's not true. I just completed a real-time av streaming project using gstreamer which is quite a complex library to use and it helped me a lot. However, you have to be patient and ask questions very precisely. You might have to repeat the questions once in a while since it has short-term memory and can lose critical information you provided after a couple of questions and answers. The chat capability is the most useful feature to plan and design your project and get chunks of code for specific components.

    • @axeldaguerre8838
      @axeldaguerre8838 16 днів тому +1

      ​ @vncstudio I think most people answering my old comment didn't get what I said.
      You are telling me that it helped you to use a library, which has tutorials, documentation and source code on the internet. I've never said it won't help you in that regard, I said the complete opposite.
      People feels attacked when they are attached to something, if you didn't, I am pretty sure you would haven't written this comment. I don't want to be rude though

    • @vncstudio
      @vncstudio 15 днів тому

      ​@@axeldaguerre8838 I certainly do not feel attacked by such a minor thing...LOL. I thought exactly like you that it was okay for some routine boiler plating and would not solve complex problems but it has exceeded my expectations and saved me a lot of time. It does not mean it is perfect. It can take you down a dead-end too yet it is great to jumpstart in domains of solution design and implementation that might be new to you.

  • @gJonii
    @gJonii 5 місяців тому +2

    I don't understand this "create this" pseudoprogramming prompting. It failed him on stage, and it fails everyone. Why not just write the model header, or if you literally can't do that, "model of name and ..." comment above it, with the verb missing? It seems purposefully awful workflow that's being promoted here.

    • @gJonii
      @gJonii 5 місяців тому +2

      @@asksearchknock No like, I think it works quite well. As long as you don't try to use it the way he was using it with "comment programming", it is quite good at seeing what you're doing and going from there.

    • @GeekTrainer
      @GeekTrainer 5 місяців тому

      Since GitHub Copilot is built upon an LLM it's probabilistic rather than deterministic, so it doesn't always do the same thing. There will be times where you expect one thing and get another, which is the nature of these types of tools. I left this part in as a demonstration and highlighted now to then work with the tool through rephrasing.

  • @user-qm9jz4zb7j
    @user-qm9jz4zb7j 5 місяців тому

    Hello

  • @ArkticFish
    @ArkticFish 3 місяці тому +1

    Me: Go get me a beer
    Copilot: Gets Becks
    Me: Uninstall

  • @yashguma
    @yashguma 5 місяців тому

    Promptcraft > witchcraft

  • @1Eagler
    @1Eagler 4 місяці тому

    Maybe it would be nice to add voice recordings

  • @user-ov8ei5iu6h
    @user-ov8ei5iu6h 4 дні тому

    ฉนต้องการพอเหมาระในแต่ลับริบทการเรีบนรุ้ที่เคารพกันและกันอย่างมีขอบเขตและเปยธรรมเรียนรุ้กันอย่างโปร่งใส่ก่อนเจเาตะ

  • @johnmcormick
    @johnmcormick 5 місяців тому

    okay what about visual studios 2022? vscode isn't useful

  • @SabithHunter
    @SabithHunter 5 місяців тому

    0:07 0:08 0:08 0:09

    • @ex0stasis72
      @ex0stasis72 5 місяців тому +1

      Did you have a stroke?

  • @user-ov8ei5iu6h
    @user-ov8ei5iu6h 4 дні тому

    ฉันไม่รุ้ที่มาและไม่มั่นใจและพึ่งเคยเหนคุนเมือบางอยางผิดพลาด

  • @user-ov8ei5iu6h
    @user-ov8ei5iu6h 4 дні тому

    ว่าคุนมีความรุ้ที่มาวนใจอย่างไรเมื่อคุนอยุ่ทุกที่ที่ฉันใช้บริการ

  • @user-ov8ei5iu6h
    @user-ov8ei5iu6h 4 дні тому

    ส่วนใหญ่แต่ฉันผิดพลาดบางอย่างส่วนตัวของผผแผฉันขออภัย

  • @ruandupreez6144
    @ruandupreez6144 5 місяців тому +7

    Whats up with the nail polish my man...

    • @belphegor_tv
      @belphegor_tv 3 місяці тому

      It's to make weirdos like you hard.

    • @Algardraug
      @Algardraug 2 місяці тому +1

      What's up with it? Don't you like blue?

    • @themadladgaming
      @themadladgaming 2 місяці тому

      @@Algardraug i like you to get a job, and touch some grass

  • @user-ov8ei5iu6h
    @user-ov8ei5iu6h 4 дні тому

    โปรดเข้าใจและฉันเหนความเปี่ยนแปลงแะ

  • @jdavid82
    @jdavid82 5 місяців тому +1

    must focus on topic... stay focused... I can't

  • @martapfahl940
    @martapfahl940 3 місяці тому +2

    Men don't wear nail polish, basta

    • @Algardraug
      @Algardraug 2 місяці тому +1

      Why?

    • @martapfahl940
      @martapfahl940 2 місяці тому +2

      @@Algardraug Becuase nail polish makes a hand look very elegant and feminine. My mind yells at me that there is a mistake in the matrix when I see a strong male hand with nail polish. And in reality no mascular man would wear it. And to be honest companys push those people into the camera to show them "we are diverse" although he might be the only one among the entire staff

  • @MartinHAndersen
    @MartinHAndersen 5 місяців тому +66

    Why do you ware blue nail polish?

    • @scientist30
      @scientist30 5 місяців тому +41

      Why you care?

    • @sonujhariya
      @sonujhariya 5 місяців тому

      Men care for it's community.@@scientist30

    • @Second_Yt-g
      @Second_Yt-g 5 місяців тому +3

      😂😂😂😂 guy

    • @SilviuIT-tn3dn
      @SilviuIT-tn3dn 5 місяців тому

      i can't get over it too. :) @@scientist30

    • @GeekTrainer
      @GeekTrainer 5 місяців тому +23

      Because I like color in my life, in particular blue 😀

  • @alysonsloka8386
    @alysonsloka8386 3 місяці тому +1

    Hahah these Ai comments. The internet is dead.

  • @projectcontractors
    @projectcontractors 4 місяці тому +1

    'One of the most common questions I get asked is ... Purple nails, WTF?

    • @belphegor_tv
      @belphegor_tv 3 місяці тому

      Do the nails get you hard?

  • @MrMigueldf
    @MrMigueldf Місяць тому

    that nails 🤣

  • @johnmcormick
    @johnmcormick 5 місяців тому +7

    can paint your nails blue, but can't brush your teeth?

  • @onke
    @onke 4 місяці тому +1

    Audio so low and what the heck are those nails bruv

    • @Algardraug
      @Algardraug 2 місяці тому +1

      They're painted, look up nail polish

  • @CGRealStudios
    @CGRealStudios 5 місяців тому +8

    What's wrong with his nails ?

  • @alerossi82
    @alerossi82 Місяць тому +1

    Bro what's wrong with your nails

  • @iPankBMW
    @iPankBMW 5 місяців тому +4

    Why the fuck his nails are painted...

    • @Algardraug
      @Algardraug 2 місяці тому +1

      Why the fuck not?

    • @themadladgaming
      @themadladgaming 2 місяці тому

      get a job man...touch some grass@@Algardraug

  • @NoWhiteGullibility
    @NoWhiteGullibility 5 місяців тому

    Excellent!

  • @user-ov8ei5iu6h
    @user-ov8ei5iu6h 4 дні тому

    ฉันยินดีหากมีความรุ้ดีแกากันแต่ฉันพึ่งเริ่มรุ้จักคุนและขอความ้ฝเปนส่วนตัวมสกกว่านี้

  • @user-ov8ei5iu6h
    @user-ov8ei5iu6h 4 дні тому

    ขออภัยตุนมาตอนไนฉันขอเนงนียนรุ้ก่อนแต่ฉันยังไมม่ค่อยรุ้จักและเหนมาก่อน