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

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

Комментарии • 130

  • @eunomi
    @eunomi 4 месяца назад

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

  • @user-gg8we2ot4b
    @user-gg8we2ot4b 5 месяцев назад +1

    Thank you for Good Demo!

  • @jjgravelle
    @jjgravelle 6 месяцев назад +45

    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 21 день назад +1

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

  • @omureddy
    @omureddy Месяц назад

    fantastic job, very useful , thank you sir!!

  • @Kimomaru
    @Kimomaru 2 месяца назад

    Excellent presentation!

  • @PuffNSnort
    @PuffNSnort 4 месяца назад +4

    How do you stop it from uploading config files?

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

  • @rgeisert
    @rgeisert 8 дней назад

    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.

  • @pleanermail
    @pleanermail 5 месяцев назад +6

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

  • @user-jm2zh6jv5e
    @user-jm2zh6jv5e 3 месяца назад

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

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

  • @tamimiYoutube
    @tamimiYoutube 3 месяца назад

    Good job!

  • @hemantmhase9031
    @hemantmhase9031 3 месяца назад

    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.

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

  • @magdalenaszulc8997
    @magdalenaszulc8997 5 месяцев назад

    Great I wish to try

  • @vdmircea
    @vdmircea 4 месяца назад +1

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

  • @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 - 结语

  • @hedgefund996
    @hedgefund996 5 месяцев назад

    Good Content

  • @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 ;)

  • @veganphilosopher1975
    @veganphilosopher1975 3 месяца назад +8

    great intro. Love the presenter! rocking that polish 💅

    • @martapfahl940
      @martapfahl940 2 месяца назад +1

      man with polish is horrible

    • @ahbarajaib2357
      @ahbarajaib2357 21 день назад +1

      You are vegan... what do you know.

  • @Amd107
    @Amd107 2 месяца назад

    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

  • @uabpsab
    @uabpsab 2 месяца назад

    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 2 месяца назад +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 2 месяца назад

      @@webasdf thank you!

  • @akashmilton
    @akashmilton 5 месяцев назад +1

    The volume is less

  • @muyivushafiq8389
    @muyivushafiq8389 6 месяцев назад

    Awesome!

  • @jannarkiewicz633
    @jannarkiewicz633 2 месяца назад +1

    If are anything like me and I know I am

  • @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? 🤔

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

  • @duaneadamx
    @duaneadamx 5 месяцев назад +3

    The audio is super low.

  • @ashokchakravarthi1163
    @ashokchakravarthi1163 5 месяцев назад +16

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

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

  • @AbdulRehman1-
    @AbdulRehman1- 4 месяца назад +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- 4 месяца назад

      Please help me

    • @ahmedshahzad7654
      @ahmedshahzad7654 4 месяца назад

      @@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?

  • @SergiuTalnaci
    @SergiuTalnaci 2 месяца назад

    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.

  • @ArkticFish
    @ArkticFish 3 месяца назад +1

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

  • @user-qm9jz4zb7j
    @user-qm9jz4zb7j 5 месяцев назад

    Hello

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

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

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

  • @1Eagler
    @1Eagler 4 месяца назад

    Maybe it would be nice to add voice recordings

  • @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 2 месяца назад

      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 3 дня назад

      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 2 дня назад +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 День назад

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

  • @yashguma
    @yashguma 5 месяцев назад

    Promptcraft > witchcraft

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

  • @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 Месяц назад

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

  • @jdavid82
    @jdavid82 4 месяца назад +1

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

  • @MrMigueldf
    @MrMigueldf Месяц назад

    that nails 🤣

  • @NoWhiteGullibility
    @NoWhiteGullibility 5 месяцев назад

    Excellent!

  • @alysonsloka8386
    @alysonsloka8386 3 месяца назад +1

    Hahah these Ai comments. The internet is dead.

  • @MartinHAndersen
    @MartinHAndersen 5 месяцев назад +63

    Why do you ware blue nail polish?

    • @scientist30
      @scientist30 5 месяцев назад +39

      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 месяцев назад +20

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

  • @projectcontractors
    @projectcontractors 3 месяца назад +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?

  • @martapfahl940
    @martapfahl940 2 месяца назад +1

    Men don't wear nail polish, basta

    • @Algardraug
      @Algardraug 2 месяца назад +1

      Why?

    • @martapfahl940
      @martapfahl940 2 месяца назад +1

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

  • @johnmcormick
    @johnmcormick 5 месяцев назад +7

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

  • @onke
    @onke 4 месяца назад

    Audio so low and what the heck are those nails bruv

    • @Algardraug
      @Algardraug 2 месяца назад +1

      They're painted, look up nail polish

  • @alerossi82
    @alerossi82 Месяц назад

    Bro what's wrong with your nails

  • @CGRealStudios
    @CGRealStudios 5 месяцев назад +8

    What's wrong with his nails ?

    • @miamoto5040
      @miamoto5040 4 месяца назад

      Some gay shit probably

  • @iPankBMW
    @iPankBMW 4 месяца назад +3

    Why the fuck his nails are painted...

    • @Algardraug
      @Algardraug 2 месяца назад +1

      Why the fuck not?

    • @themadladgaming
      @themadladgaming Месяц назад

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