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.
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.
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
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?
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.
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?
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 :)
@@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.
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
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.
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.
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.
I wonder how well it would do with a TDD approach; probably less debugging needed
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
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?
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.
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?
That will be the future video!
But anyway - good observation.
@@zoran-horvat happy to seeing it
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 :)
@@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.
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