From the course: AI-Powered Development: GitHub Copilot in Visual Studio Code

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Examine the generated code and UI

Examine the generated code and UI

It's time to inspect what Copilot generated, and this should be part of your regular process. Vibe coding is fun, and it's great to build something in 30 minutes, but you don't really know what's in the code yet. Is the HTML accessible? Is the UI solid? And is the code readable and safe? So don't just accept whatever Copilot spits out. Review it. There are three files for us to review, app.js, index.html, and style.css. I'll start with the JavaScript file. Now, if you scroll to the bottom of this, you'll see there's about 600 lines of code. And I'm not going to go through those line by line. So what I'll do is I'll start by pointing out a few interesting sections at the beginning of the file. And then we'll see if there's another way we can review. So at the top, we've got some comments about the application and its architecture. There's a set of defaults, a set of constants, I should say. There's a curated color palette section. These are the color palettes that we saw in the…

Contents