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

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2024

ความคิดเห็น • 158

  • @jdmtssp
    @jdmtssp 11 หลายเดือนก่อน +6

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

  • @rgeisert
    @rgeisert 7 หลายเดือนก่อน +12

    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 7 หลายเดือนก่อน +1

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

    • @jplauy
      @jplauy 6 หลายเดือนก่อน +3

      I was going to comment about this too hahahaha Is sooooooooooooooo distracting XD

    • @jbcatl
      @jbcatl 3 หลายเดือนก่อน +2

      But in 36 months they will announce that purple nails are no longer supported, and start pushing green nails, after your organization has committed millions to implementing purple nails across the enterprise.

  • @alone-8888
    @alone-8888 8 หลายเดือนก่อน +3

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

  • @PuffNSnort
    @PuffNSnort ปีที่แล้ว +4

    How do you stop it from uploading config files?

  • @spectacularangular637
    @spectacularangular637 6 หลายเดือนก่อน +1

    2:46 how much Context does it send GH Copilot if the file is 10,000 files long? etc.

  • @jjgravelle
    @jjgravelle ปีที่แล้ว +69

    Nailed it... 😎

    • @g.c955
      @g.c955 ปีที่แล้ว +10

      I see what you did there 😉

    • @derekcarday
      @derekcarday ปีที่แล้ว +4

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

    • @jonathanmelhuish4530
      @jonathanmelhuish4530 ปีที่แล้ว +1

      But only half?

    • @runewinsevik8471
      @runewinsevik8471 8 หลายเดือนก่อน +3

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

    • @nenemalo1941
      @nenemalo1941 2 หลายเดือนก่อน

      @@runewinsevik8471 but also the nail job is at 75% hahhahahha mannn!!

  • @hemant9031
    @hemant9031 10 หลายเดือนก่อน +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.

  • @ramesherrabolu1590
    @ramesherrabolu1590 18 วันที่ผ่านมา

    Can I assist the building of CONTEXT via prompt. For example Add to Context source files from folders X, Y and Z. Will that work

  • @gaiustacitus4242
    @gaiustacitus4242 7 หลายเดือนก่อน +1

    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.

  • @shriprasadmarathe7391
    @shriprasadmarathe7391 10 หลายเดือนก่อน +1

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

  • @omureddy
    @omureddy 8 หลายเดือนก่อน

    fantastic job, very useful , thank you sir!!

  • @aspiringcoder2024
    @aspiringcoder2024 ปีที่แล้ว +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.

  • @ramp2011
    @ramp2011 ปีที่แล้ว +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 11 หลายเดือนก่อน

      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.

  • @veganphilosopher1975
    @veganphilosopher1975 10 หลายเดือนก่อน +11

    great intro. Love the presenter! rocking that polish 💅

    • @martapfahl940
      @martapfahl940 10 หลายเดือนก่อน +2

      man with polish is horrible

    • @ahbarajaib2357
      @ahbarajaib2357 8 หลายเดือนก่อน +2

      You are vegan... what do you know.

    • @XxwolfixX
      @XxwolfixX หลายเดือนก่อน

      ​@@martapfahl940 hating on people for nail polish is horrible. Maybe you should try painting your personality a nicer color ^^

  • @Amd107
    @Amd107 10 หลายเดือนก่อน

    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

  • @ashokchakravarthi1163
    @ashokchakravarthi1163 ปีที่แล้ว +18

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

    • @pauliussutkus526
      @pauliussutkus526 ปีที่แล้ว +2

      For actors to learn expresion.

    • @Luixinporai
      @Luixinporai 3 หลายเดือนก่อน +1

      To show off his nails

  • @MartinHAndersen
    @MartinHAndersen ปีที่แล้ว +76

    Why do you ware blue nail polish?

    • @scientist30
      @scientist30 ปีที่แล้ว +48

      Why you care?

    • @sonujhariya
      @sonujhariya ปีที่แล้ว

      Men care for it's community.@@scientist30

    • @KnowledgeUpdatka_1-a
      @KnowledgeUpdatka_1-a ปีที่แล้ว +3

      😂😂😂😂 guy

    • @SilviuIT-tn3dn
      @SilviuIT-tn3dn ปีที่แล้ว

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

    • @GeekTrainer
      @GeekTrainer ปีที่แล้ว +29

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

  • @pleanermail
    @pleanermail ปีที่แล้ว +7

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

  • @uabpsab
    @uabpsab 10 หลายเดือนก่อน

    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 10 หลายเดือนก่อน +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 10 หลายเดือนก่อน

      @@webasdf thank you!

  • @Yonglee7015
    @Yonglee7015 ปีที่แล้ว +6

    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?

  • @JuanAlarcon-o6k
    @JuanAlarcon-o6k 10 หลายเดือนก่อน

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

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

  • @akashmilton
    @akashmilton ปีที่แล้ว +1

    The volume is less

  • @Kimomaru
    @Kimomaru 9 หลายเดือนก่อน

    Excellent presentation!

  • @SrikarKura
    @SrikarKura ปีที่แล้ว +1

    Thank you for Good Demo!

  • @SocratesWasRight
    @SocratesWasRight ปีที่แล้ว +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 11 หลายเดือนก่อน +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 ;)

  • @nikitphadke
    @nikitphadke ปีที่แล้ว +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!

  • @AbdulRehman1-
    @AbdulRehman1- ปีที่แล้ว +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- ปีที่แล้ว

      Please help me

    • @ahmedshahzad7654
      @ahmedshahzad7654 ปีที่แล้ว

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

  • @duaneadamx
    @duaneadamx ปีที่แล้ว +3

    The audio is super low.

  • @ArkticFish
    @ArkticFish 10 หลายเดือนก่อน +1

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

  • @vdmircea
    @vdmircea 11 หลายเดือนก่อน +1

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

  • @tamimiYoutube
    @tamimiYoutube 10 หลายเดือนก่อน

    Good job!

  • @mahmudx
    @mahmudx ปีที่แล้ว +1

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

    • @GeekTrainer
      @GeekTrainer ปีที่แล้ว +1

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

  • @magdalenaszulc8997
    @magdalenaszulc8997 ปีที่แล้ว

    Great I wish to try

  • @orthodox_gentleman
    @orthodox_gentleman 6 หลายเดือนก่อน +2

    Copilot is too outdated! They need to figure out how to constantly update and train the model because it’s last update is 2021 like MS Copilot which is crazy to me! That is 3 years ago and in the tech world that is a long time!

  • @gJonii
    @gJonii ปีที่แล้ว +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 ปีที่แล้ว +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 ปีที่แล้ว

      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.

  • @Explorest
    @Explorest ปีที่แล้ว +2

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

  • @jannarkiewicz633
    @jannarkiewicz633 9 หลายเดือนก่อน +1

    If are anything like me and I know I am

  • @johnmcormick
    @johnmcormick ปีที่แล้ว

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

    • @belphegor_dev
      @belphegor_dev 10 หลายเดือนก่อน

      What about it?

  • @axeldaguerre7309
    @axeldaguerre7309 11 หลายเดือนก่อน

    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_dev
      @belphegor_dev 10 หลายเดือนก่อน +1

      Maybe use it first before jumping to conclusions.

    • @axeldaguerre7309
      @axeldaguerre7309 9 หลายเดือนก่อน

      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 7 หลายเดือนก่อน

      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 7 หลายเดือนก่อน +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 7 หลายเดือนก่อน

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

  • @JazevoAudiosurf
    @JazevoAudiosurf ปีที่แล้ว +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

  • @BonAnurakBoonyaritphanit
    @BonAnurakBoonyaritphanit 5 หลายเดือนก่อน

    Good explanation. not too fast and clearly for who is not native english.

  • @SergiuTalnaci
    @SergiuTalnaci 9 หลายเดือนก่อน

    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.

  • @hedgefund996
    @hedgefund996 ปีที่แล้ว

    Good Content

  • @SabithHunter
    @SabithHunter ปีที่แล้ว

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

    • @ex0stasis72
      @ex0stasis72 ปีที่แล้ว +1

      Did you have a stroke?

  • @ruandupreez6144
    @ruandupreez6144 ปีที่แล้ว +7

    Whats up with the nail polish my man...

    • @belphegor_dev
      @belphegor_dev 10 หลายเดือนก่อน

      It's to make weirdos like you hard.

    • @Algardraug
      @Algardraug 9 หลายเดือนก่อน +2

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

    • @themadladgaming
      @themadladgaming 9 หลายเดือนก่อน

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

    • @tonjar
      @tonjar 6 หลายเดือนก่อน

      Let me break it down to you:
      He opened the bottle, applied the paint to the finger nails, let it dry and voilà: done!

  • @muyivushafiq8389
    @muyivushafiq8389 ปีที่แล้ว

    Awesome!

  • @1Eagler
    @1Eagler 11 หลายเดือนก่อน

    Maybe it would be nice to add voice recordings

  • @martapfahl940
    @martapfahl940 10 หลายเดือนก่อน +3

    Men don't wear nail polish, basta

    • @Algardraug
      @Algardraug 9 หลายเดือนก่อน +1

      Why?

    • @martapfahl940
      @martapfahl940 9 หลายเดือนก่อน +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

    • @tonjar
      @tonjar 6 หลายเดือนก่อน

      Not for you to decide.

    • @martapfahl940
      @martapfahl940 6 หลายเดือนก่อน

      @@tonjar Yes it is for me to decide.

  • @AmjadNasr-r5f
    @AmjadNasr-r5f ปีที่แล้ว

    Hello

  • @johnmcormick
    @johnmcormick ปีที่แล้ว +8

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

  • @yashguma
    @yashguma ปีที่แล้ว

    Promptcraft > witchcraft

  • @jdavid82
    @jdavid82 ปีที่แล้ว +2

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

  • @KevinNdhlovu
    @KevinNdhlovu 3 หลายเดือนก่อน

    😂❤❤🎉😢😮😅😊

  • @projectcontractors
    @projectcontractors 11 หลายเดือนก่อน +1

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

    • @belphegor_dev
      @belphegor_dev 10 หลายเดือนก่อน

      Do the nails get you hard?

  • @awebcode
    @awebcode 5 หลายเดือนก่อน

    make it free plese😿😿

  • @CGRealStudios
    @CGRealStudios ปีที่แล้ว +9

    What's wrong with his nails ?

    • @miamoto5040
      @miamoto5040 ปีที่แล้ว

      Some gay shit probably

    • @mr.bouncealot9047
      @mr.bouncealot9047 7 หลายเดือนก่อน

      Could be psoriasis

    • @orthodox_gentleman
      @orthodox_gentleman 6 หลายเดือนก่อน

      @@mr.bouncealot9047what? lol do you know what psoriasis looks like? It doesn’t affect the nails! He probably painted them.

    • @mr.bouncealot9047
      @mr.bouncealot9047 6 หลายเดือนก่อน

      @@orthodox_gentleman google it, good sir

    • @CreatorEdge
      @CreatorEdge 6 หลายเดือนก่อน

      They are to identify*** use copilot to finish that line.

  • @onke
    @onke 11 หลายเดือนก่อน +2

    Audio so low and what the heck are those nails bruv

    • @Algardraug
      @Algardraug 9 หลายเดือนก่อน +1

      They're painted, look up nail polish

  • @MrMigueldf
    @MrMigueldf 8 หลายเดือนก่อน

    that nails 🤣

  • @alysonsloka8386
    @alysonsloka8386 10 หลายเดือนก่อน +1

    Hahah these Ai comments. The internet is dead.

  • @beatriceowusuachaw6210
    @beatriceowusuachaw6210 6 หลายเดือนก่อน

    GOD is a miracle worker Amen 😅

  • @alerossi82
    @alerossi82 8 หลายเดือนก่อน +1

    Bro what's wrong with your nails

  • @iPankBMW
    @iPankBMW 11 หลายเดือนก่อน +5

    Why the fuck his nails are painted...

    • @Algardraug
      @Algardraug 9 หลายเดือนก่อน +2

      Why the fuck not?

    • @themadladgaming
      @themadladgaming 9 หลายเดือนก่อน

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

    • @tonjar
      @tonjar 6 หลายเดือนก่อน

      So easily upset? Poor you.

  • @NoWhiteGullibility
    @NoWhiteGullibility ปีที่แล้ว

    Excellent!