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

  Рет қаралды 111,013

GitHub

GitHub

Күн бұрын

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:
KZfaq: 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

Пікірлер: 133
@eunomi
@eunomi 4 ай бұрын
I'm just getting started with Copilot. I have to say this is a GREAT video.
@rgeisert
@rgeisert 17 күн бұрын
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 5 күн бұрын
Fortunately, I'm an Apple guy so my nails will remain the color of my choice.
@Kimomaru
@Kimomaru 2 ай бұрын
Excellent presentation!
@user-gg8we2ot4b
@user-gg8we2ot4b 5 ай бұрын
Thank you for Good Demo!
@omureddy
@omureddy Ай бұрын
fantastic job, very useful , thank you sir!!
@jjgravelle
@jjgravelle 6 ай бұрын
Nailed it... 😎
@g.c955
@g.c955 5 ай бұрын
I see what you did there 😉
@djcardwell
@djcardwell 5 ай бұрын
🤣🤣🤣🤣🤣🤣🤣 MADE MY DAY!!!
@jonathanmelhuish4530
@jonathanmelhuish4530 5 ай бұрын
But only half?
@runewinsevik8471
@runewinsevik8471 Ай бұрын
Unfortunately the nail job took about 75% of the attention...
@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.
@gaiustacitus4242
@gaiustacitus4242 5 күн бұрын
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.
@pleanermail
@pleanermail 5 ай бұрын
Always Sprinkles✨ High information per minute with personality. Thanks for this video Christopher 😚👌
@shriprasadmarathe7391
@shriprasadmarathe7391 3 ай бұрын
Great video !. There is typo in `preselect` . Not sure, was that the reason it have not picked up id and name.
@user-jm2zh6jv5e
@user-jm2zh6jv5e 3 ай бұрын
Such a great intro and demo. Very clear and easy to understand
@tamimiYoutube
@tamimiYoutube 3 ай бұрын
Good job!
@aspiringcoder2024
@aspiringcoder2024 5 ай бұрын
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.
@PuffNSnort
@PuffNSnort 4 ай бұрын
How do you stop it from uploading config files?
@vdmircea
@vdmircea 4 ай бұрын
wow! it's amazing, "works shokingly well" in real-time inter-operating systems!
@magdalenaszulc8997
@magdalenaszulc8997 5 ай бұрын
Great I wish to try
@ramp2011
@ramp2011 5 ай бұрын
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.
@hedgefund996
@hedgefund996 5 ай бұрын
Good Content
@InnocentiusLacrimosa
@InnocentiusLacrimosa 5 ай бұрын
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 ай бұрын
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 ;)
@alone-8888
@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 - 结语
@veganphilosopher1975
@veganphilosopher1975 3 ай бұрын
great intro. Love the presenter! rocking that polish 💅
@martapfahl940
@martapfahl940 3 ай бұрын
man with polish is horrible
@ahbarajaib2357
@ahbarajaib2357 Ай бұрын
You are vegan... what do you know.
@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 ай бұрын
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 2 ай бұрын
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!
@jannarkiewicz633
@jannarkiewicz633 2 ай бұрын
If are anything like me and I know I am
@muyivushafiq8389
@muyivushafiq8389 6 ай бұрын
Awesome!
@akashmilton
@akashmilton 5 ай бұрын
The volume is less
@mahmudx
@mahmudx 5 ай бұрын
Heyyyy! I used to watch you in MVA days. Are you still a dog owner?
@GeekTrainer
@GeekTrainer 5 ай бұрын
Hey there!!! Absolutely am! We have a rescue American Staffordshire mix
@nikitphadke
@nikitphadke 5 ай бұрын
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!
@AbdulRehman1-
@AbdulRehman1- 5 ай бұрын
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.
@JazevoAudiosurf
@JazevoAudiosurf 5 ай бұрын
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
@duaneadamx
@duaneadamx 5 ай бұрын
The audio is super low.
@Explorest
@Explorest 5 ай бұрын
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
@Yonglee7015
@Yonglee7015 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?
@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 ай бұрын
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 11 күн бұрын
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 11 күн бұрын
​ @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 9 күн бұрын
​@@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.
@ashokchakravarthi1163
@ashokchakravarthi1163 5 ай бұрын
Show the screen and explain, why show the person all the time
@pauliussutkus526
@pauliussutkus526 5 ай бұрын
For actors to learn expresion.
@ArkticFish
@ArkticFish 3 ай бұрын
Me: Go get me a beer Copilot: Gets Becks Me: Uninstall
@user-qm9jz4zb7j
@user-qm9jz4zb7j 5 ай бұрын
Hello
@1Eagler
@1Eagler 4 ай бұрын
Maybe it would be nice to add voice recordings
@gJonii
@gJonii 5 ай бұрын
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 ай бұрын
@@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.
@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.
@johnmcormick
@johnmcormick 5 ай бұрын
okay what about visual studios 2022? vscode isn't useful
@belphegor_tv
@belphegor_tv 3 ай бұрын
What about it?
@yashguma
@yashguma 5 ай бұрын
Promptcraft > witchcraft
@SabithHunter
@SabithHunter 5 ай бұрын
0:07 0:08 0:08 0:09
@ex0stasis72
@ex0stasis72 5 ай бұрын
Did you have a stroke?
@MrMigueldf
@MrMigueldf Ай бұрын
that nails 🤣
@ruandupreez6144
@ruandupreez6144 5 ай бұрын
Whats up with the nail polish my man...
@belphegor_tv
@belphegor_tv 3 ай бұрын
It's to make weirdos like you hard.
@Algardraug
@Algardraug 2 ай бұрын
What's up with it? Don't you like blue?
@themadladgaming
@themadladgaming Ай бұрын
@@Algardraug i like you to get a job, and touch some grass
@MartinHAndersen
@MartinHAndersen 5 ай бұрын
Why do you ware blue nail polish?
@scientist30
@scientist30 5 ай бұрын
Why you care?
@sonujhariya
@sonujhariya 5 ай бұрын
Men care for it's community.@@scientist30
@Second_Yt-g
@Second_Yt-g 5 ай бұрын
😂😂😂😂 guy
@SilviuIT-tn3dn
@SilviuIT-tn3dn 5 ай бұрын
i can't get over it too. :) @@scientist30
@GeekTrainer
@GeekTrainer 5 ай бұрын
Because I like color in my life, in particular blue 😀
@jdavid82
@jdavid82 5 ай бұрын
must focus on topic... stay focused... I can't
@projectcontractors
@projectcontractors 4 ай бұрын
'One of the most common questions I get asked is ... Purple nails, WTF?
@belphegor_tv
@belphegor_tv 3 ай бұрын
Do the nails get you hard?
@alysonsloka8386
@alysonsloka8386 3 ай бұрын
Hahah these Ai comments. The internet is dead.
@johnmcormick
@johnmcormick 5 ай бұрын
can paint your nails blue, but can't brush your teeth?
@martapfahl940
@martapfahl940 3 ай бұрын
Men don't wear nail polish, basta
@Algardraug
@Algardraug 2 ай бұрын
Why?
@martapfahl940
@martapfahl940 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
@onke
@onke 4 ай бұрын
Audio so low and what the heck are those nails bruv
@Algardraug
@Algardraug 2 ай бұрын
They're painted, look up nail polish
@CGRealStudios
@CGRealStudios 5 ай бұрын
What's wrong with his nails ?
@miamoto5040
@miamoto5040 5 ай бұрын
Some gay shit probably
@mr.bouncealot9047
@mr.bouncealot9047 4 күн бұрын
Could be psoriasis
@iPankBMW
@iPankBMW 4 ай бұрын
Why the fuck his nails are painted...
@Algardraug
@Algardraug 2 ай бұрын
Why the fuck not?
@themadladgaming
@themadladgaming Ай бұрын
get a job man...touch some grass@@Algardraug
@alerossi82
@alerossi82 Ай бұрын
Bro what's wrong with your nails
@NoWhiteGullibility
@NoWhiteGullibility 5 ай бұрын
Excellent!
Copilot Chat in Visual Studio Code | GitHub Universe
9:48
How I Code Faster - GitHub Copilot
10:49
Luke Barousse
Рет қаралды 56 М.
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100m
00:29
Celine Dept
Рет қаралды 54 МЛН
Кәріс тіріма өзі ?  | Synyptas 3 | 8 серия
24:47
kak budto
Рет қаралды 1,7 МЛН
顔面水槽がブサイク過ぎるwwwww
00:58
はじめしゃちょー(hajime)
Рет қаралды 114 МЛН
This VS Code AI Coding Assistant Is A Game Changer!
14:27
codeSTACKr
Рет қаралды 120 М.
CS Professor Sounds Alarm on AI and Programmers
12:21
Travis Media
Рет қаралды 281 М.
GitHub Copilot Tutorial | How useful is it for Cloud and DevOps?
43:43
TechWorld with Nana
Рет қаралды 88 М.
I Tried Every AI Coding Assistant
24:50
Conner Ardman
Рет қаралды 668 М.
Helping GitHub Copilot help you with prompt crafting
17:34
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 935 М.
GitHub Copilot in VSCode: Top 10 Features Explained
8:44
Max on Tech
Рет қаралды 73 М.
Приехала Большая Коробка от Anker! А Внутри...
20:09
РасПаковка ДваПаковка
Рет қаралды 78 М.
Распаковка айфона в воде😱 #shorts
0:25
Mevaza
Рет қаралды 1,6 МЛН
Теперь это его телефон
0:21
Хорошие Новости
Рет қаралды 1,6 МЛН
Which Phone Unlock Code Will You Choose? 🤔️
0:14
Game9bit
Рет қаралды 10 МЛН
What’s your charging level??
0:14
Татьяна Дука
Рет қаралды 5 МЛН
Xiaomi Note 13 Pro по безумной цене в России
0:43
Простые Технологии
Рет қаралды 1,7 МЛН
How much charging is in your phone right now? 📱➡️ 🔋VS 🪫
0:11