From the course: AI Pair Programming with GitHub Copilot X

Brainstorming with Copilot X conversational interface

From the course: AI Pair Programming with GitHub Copilot X

Brainstorming with Copilot X conversational interface

- [Tutor] In this one we're going to look at brainstorming with Copilot X chat. Now while this is called brainstorming it is not meant as a substitute for human interaction. This is just another instrument for your toolbox whether you're working alone or working with a team. And we'll focus both on writing prompts or prompt engineering and sort of getting creative with asking it questions or asking it to ask questions of us. So I'm going to expand this window right here and I'll tell it that I'm creating a web app for tracking expenses. Ask me some design questions so we can chart out the request response cycle. So instead of asking it questions, I actually asked it to give me some questions that can help me clarify things. So what kind of expenses will you track? Will users need to sign up, log in? What will... Okay, great. Let's ask it to focus in. Let's focus on the stack first. Okay, so let's do Django and then do Python and pure JavaScript, as well as REST framework. Okay, so it's giving descriptions of it. Okay, great. So now describe the request response HTTP cycle. And I wrote HTTPS cycle. So I may create a graph. Great, so it's giving me, "The user opens the web app in the browser, "server responds with the HTML." Looks good, interacts with the web application the apps sends a POST across the server. Great, so that looks just about right. So here you can take this back to your team and sort of of discuss this. You can come up with questions and this is a very powerful method to actually come up with questions that can help you get a little bit deeper into design. And finally, you can sort of ask it to map out request and responses. So based on the interaction with Copilot X, I've gone ahead and created this flow chart which can help me understand what's going on. So basically a user is going to load some HTML and CSS, as well as JavaScript on the first request. And after that it's going to query the REST API which is then going to return JSON and Create, Read, Update, Delete operations are going to be done against a database and I'm going to be using Django REST framework in order to create the API. And Django, which is a very popular mainstream web application framework for Python applications. There are many web application frameworks out there including Flask and FastAPI For this one, we're going to use Django.

Contents