Skip to main content

LAB: Adding Style Guides

Letting your AI tool decide how to code things is like letting a stranger on the street dress you in whatever fashion they like. Not gonna happen! So let's make sure we're on fleek with our LLM.

This is where we being to address the "crap code" problem when it comes to AI code generation. Spend any time on social media, and you'll see people lamenting how AI is failing them:

Of course, this is an extreme case and this poor person is trying to code without understanding how code works, which is where we'll start this lab.

Understanding What You're Doing

It's imperative that you don't try to get AI to do something that you can't already do yourself. It's OK to use AI to learn new things, of course, but you should also be sure you have someone to talk to or at least some resource available to you so that you don't get led down the wrong path.

As we've seen: AI will do what you ask it to, even if it's completely wrong. Just like the README problem a few labs ago. Claude Sonnet (using Copilot) tried to make us look good, so invented a lot of things about our project. We know this is a bad thing, so we were able to course correct to avoid a problem

In the same way: you should be able to spot "crap code" or wrong solutions when you review what the LLM has created for you. You should also be able to tell AI more specifically what you want, to avoid these problems, also called "hallucinations".

That's what this lab is all about.

Updated on Nov 21, 2025