Using GitHub Copilot to Write Complex Code | Step-by-step Tutorial

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 14

  • @zoran-horvat
    @zoran-horvat  Рік тому +2

    Become a patron and get access to source code and exclusive live streams: www.patreon.com/posts/using-github-to-81382359
    Share your thoughts and experience using AI tools to write code! Write a comment if you have any questions or concerns regarding AI-generated code, or if you just wish to share what happened when you tried it out.

  • @silkogelman
    @silkogelman Рік тому +2

    Even though I program in Python your video was insightful about how to apply Copilot in a better way.
    Thank you for this video Zoran.

  • @hendrikbonthuys9190
    @hendrikbonthuys9190 Рік тому +1

    My suggestion is to use commenting to help drive Copilot so that it better understands what you are thinking. Just looking at your code it will try make assumptions which wont often give the results you expect. I use comments through out and using descriptive wording is a skill in itself which makes coding a more creative process imho.

  • @AaronShaverEng
    @AaronShaverEng Рік тому +1

    I wonder how well it would do with a TDD approach; probably less debugging needed

  • @Folsets
    @Folsets Рік тому +1

    Thank you, great video!

  •  Рік тому

    I am writing 10 controller and exactly same each other. When I write a new controller, copilot cannot understanding. Basically I have list and pageable API endpoints. And copilot don't understanding

  • @happy_burger
    @happy_burger Рік тому +1

    When you accept the code suggestion, you have to then manually add using statements for the new code. Shouldn't Copilot be able to do that when it pastes in the code?

    • @zoran-horvat
      @zoran-horvat  Рік тому

      Is that a line from the actual demo in this video? I cannot recall right now that any part of the demo requires the using.
      But that is a good observation. I might try that out and see whether Copilot knows that disposable objects must be disposed.
      Or is your question about the using directive for dependencies? I think that Copilot does not add them because it only adds code locally - under the caret. From how I see it, Copilot does not make changes in any other part of the file but the current line, and hence cannot add a directive at the top of the file.

  • @aandonovski
    @aandonovski Рік тому

    why so many bugs? no unit tests! how does copilot cope with unit tests, and is it able to produce implementation code better if well assembled unit test prepared?

    • @zoran-horvat
      @zoran-horvat  Рік тому +1

      That will be the future video!
      But anyway - good observation.

    • @aandonovski
      @aandonovski Рік тому

      @@zoran-horvat happy to seeing it

  • @WantMore-mc8dx
    @WantMore-mc8dx 2 місяці тому

    Tried it. Not a fan. Makes me less involved what happens and makes it x10 to debug and evan find bugs - and espacially when code is layered. It will get better though :)

    • @zoran-horvat
      @zoran-horvat  2 місяці тому

      @@WantMore-mc8dx It is already much better than when I made that video. I used it last week to write the whole bunch of web code, which would take me a week to complete as a backend developer. It does require full refactoring and restructuring now, but at least I have got to code that works correctly. I reckon it has saved me two days of work total.

  • @georget5874
    @georget5874 Рік тому

    this stuff is so lame, if you want it to fill a type with dummy data or something it doesnt have a clue.. the stuff it can do, you dont really need much help with