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

123,371
0
Published 2023-12-01
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:

YouTube: gh.io/subgithub
Blog: github.blog/
X: twitter.com/github
LinkedIn: linkedin.com/company/github
Insider newsletter: resources.github.com/newsletter/
Instagram: www.instagram.com/github
TikTok: www.tiktok.com/@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/

All Comments (21)
  • @eunomi
    I'm just getting started with Copilot. I have to say this is a GREAT video.
  • @rgeisert
    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.
  • @omureddy
    fantastic job, very useful , thank you sir!!
  • @hemant9031
    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.
  • 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.
  • @alone-8888
    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 - 结语
  • Great video !. There is typo in `preselect` . Not sure, was that the reason it have not picked up id and name.
  • @user-jm2zh6jv5e
    Such a great intro and demo. Very clear and easy to understand
  • @pleanermail
    Always Sprinkles✨
    High information per minute with personality.
    Thanks for this video Christopher 😚👌
  • @vdmircea
    wow! it's amazing, "works shokingly well" in real-time inter-operating systems!
  • @PuffNSnort
    How do you stop it from uploading config files?
  • 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.
  • @ramp2011
    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