Skip to main content

LAB: Using Templates

This is where the fun truly begins. We're going to combine all the things we've learned in this session to create a simple data access layer for our project, complete with tests.

Yes, tests.

It's at this point that most programmers will shake their head in doubt, not believing that the code we're about to see will be any good at all. This might be the case, but instead of giving up and walking away, we can alter our instructions to get around problems, and then retry.

This is where coding with an AI tool breaks with typical programming methods: you go back and try again if something doesn't work. Alter your prompt, alter your instructions, and see if you can address the problem.

There's a trick to this, however.

Updated on Nov 21, 2025