Let GitHub Copilot Write Your ASP.NET Core Application

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 มี.ค. 2023
  • Become a patron and get access to source code and exclusive live streams: / let-github-write-81382413
    You can let GitHub Copilot drive you through writing code in all the layers of the ASP.NET Core application, from Razor pages, over page models and domain models, all down to writing LINQ to Entities queries for Entity Framework Code.
    In this video, we are applying GitHub Copilot to develop a feature through all the layers of a realistic ASP.NET Core application backed by Entity Framework Core. From the UI, implemented using Razor pages and Bootstrap, over the domain model, all the way down to writing a complex LINQ to Entities query, the AI tool will show its great potential to write code.
    The stress in this video is in making GitHub Copilot write code that is aligned with our intention, so as to minimize the need for the programmer's intervention, either to correct code semantics or to have to fix the bugs inserted by the tool.
    By meticulous application of several primitive techniques, we will greatly succeed in navigating GitHub Copilot in its endeavor of generating line after line of code. That will, on the one hand, help programmers focus on the design, reducing the time they spend typing code. On the other hand, programmers will have to stay attentive, ready to catch subtle issues and outright bugs around every corner.
    The end result will not indicate GitHub Copilot as a clear winner over manual typing of the entire code. But a few techniques will crystalize along the route, showing the true potential hiding in this wonderful AI-supported tool. Watch this video and read all the code produced by Copilot and judge for yourself! I am certain that you will see a possibility of using Copilot in your everyday programming job as well.
    Related videos:
    Using GitHub Copilot to Write Complex Code ► • Using GitHub Copilot t...
    Coding with GitHub Copilot - Beginner to Master ► • A Comprehensive Guide ...
    Learn more from video courses:
    Beginning Object-oriented Programming with C# ► codinghelmet.com/go/beginning...
    Collections and Generics in C# ► codinghelmet.com/go/collectio...
    Making Your C# Code More Object-oriented ► codinghelmet.com/go/making-yo...
    Other courses at Pluralsight ► codinghelmet.com/go/pluralsight
    Other courses at Udemy ► codinghelmet.com/go/udemy
    Other videos on this channel you may be interested in watching:
    Using GitHub Copilot to Write Complex Code | Step-by-step Tutorial ► • Using GitHub Copilot t...
    Coding with GitHub Copilot - Beginner to Master | VS Code Demo ► • A Comprehensive Guide ...
    What is Covariance and Contravariance in C# ► • What is Covariance and...
    How to Initialize a Clean ASP.NET Core Project with Entity Framework Core and Identity ► • How to Initialize a Cl...
    The Null Conundrum: A Guide to Optional Objects in C# ► • How to Avoid Null Refe...
    #githubcopilot #aspnetcore #vscode
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @zoran-horvat
    @zoran-horvat  ปีที่แล้ว +2

    Become a patron and get access to source code and exclusive live streams: www.patreon.com/posts/let-github-write-81382413
    Does GitHub Copilot look like a useful tool in your everyday work? Can you apply it to improve efficiency when developing code? Write your impressions and questions in the comments below.

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

    Subscribed 😊

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

    I have screwed around with copilot and chat gpt-3 for a couple of months. It seems that most think it is the bees knees while I am less than impressed. chat loses its place adding adhoc random methods that then it infers it is a method I already wrote. It gets hung on a particular style of coding that goes against my grain. I point out bugs it fixes them then repeats the same bug a few iterations later.
    Over the 300k-550k lines of code it has only written 1 class that I thought had some quality. Maybe its because of my experience or maybe I am not the typical programmer but it is like having a employee that I have to babysit... I find it grating on my nerves more than it assisting in a productive way.

    • @zoran-horvat
      @zoran-horvat  ปีที่แล้ว +1

      I have also got poor impression about ChatGPT 3. I still don't have an opinion on ChatGPT 3.5. But Copilot is doing much better when used in line mode. After a year of using it, I'd say that it saves 20%+ development time, mostly on boring (but necessary) parts of the code base.
      Still, I don't see either option at this stage having any clue about software design, compared to a human expert.

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

    Has alternate suggestions worked well for you? I don't recall seeing it mentioned on your videos (here it is Alt+., although their page mentions Alt+[ - I had to hover over a copilot suggestion to discover the right shortcut)

    • @zoran-horvat
      @zoran-horvat  ปีที่แล้ว +1

      I never got accustomed to using alternative suggestions. Alternatives rarely helped, the list is usually full of code based on all kinds of incorrect assumptions, and it invariably breaks my focus and flow of thoughts.
      Contrary to inline suggestions, that mode didn't help me reduce development time and so I abandoned it.

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

    For .Net core, Azure etc., we're using visual studio 2022 professional edition in real time projects, please let ne know, how can we use this in Visual studio 2022? Or please suggest me best AI tool for .Net, Azure developer ?

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

    Hmm, copilot works for me in everything except razor pages. (VS 2022
    Enterprise) Is there a setting I have set wrong somewhere?