Week 10 Studio: Custom Greeting Gard
Git Repository: https://classroom50.org/lis875/lis-875-f26/assignments/greeting-card/accept
For this week ONLY, you are welcome, encouraged, and required to use AI tools (ChatGPT, Gemini, Copilot, Claude, etc.) to help you with your coding.
For today’s studio, you are to write a computer program that displays a customizable greeting card. Your program should ask the user for information, such as what the design of the card should be, what kinds of emotions it should evoke (nostalgia vs. snarky vs. …), and who it is for, and whether it is for an event. Then it should draw a customized greeting card on the screen using turtle.
Write Code Yourself, with AI as Navigator
For today’s program, you should work with AI, but only use the AI as a navigator, not as a driver. That menas that I want you to write the code. If you are using VS Code, turn off AI suggestions – click on the face icon at the bottom of the window, and uncheck all of the boxes under “ghost suggestions” or “inline suggestions”. For this exercise, you will be driving, and you will be writing the code.
Start by working on a plan. Get the AI to help with that. Think about the kinds of conversations you have with your teammates – how can you include the AI in those conversations? Can the AI help you figure out what a minimum viable product is for this? Can it help you estimate how easy/difficult different features are or will be?
That’s it. That’s the whole of the instructions – form a group (2-4 people), plus an AI tool as navigator. Write a greeting card program. Be creative in how you display the greeting card. Have fun with it.
What follows is just advice for doing it. You don’t have to follow my advice. Do whatever you want. This is just my experience in doing this, and you might want to do it differently.
Advice
Set Expectations for the AI
I have found it very helpful to start out by explicitly setting your expectations for your AI navigator. I like to explicitly tell it that I don’t want it to write any code, but instead I want it to read my code and come up with ideas and suggestions to help me work. Be explicit about what you think the role of a navigator is, and then tell the AI that.
Remember the Navigator
Remember that you have an AI navigator. You can and should regularly use it and ask for advice, suggestions, or help. But, unlike a human navigator, it doens’t just always watch; instead, you have to actually prompt it to take a look and provide feedback. Remember to do that often, because it won’t just help you when you need it.
Explicitly Ask for Feedback
As you work, periodically ask the AI for feedback and advice. For example, I was working on a has_won() function that tries to figure out whether a player has won tic-tac-toe. After I wrote part of a first draft, I asked the AI:
I just wrote the has_won function. Is this a good way to do it? Any suggestions for improvement?
And it helped me. It made some suggestions, just like a human navigator might.
Look to your AI Navigator when you feel stuck
You can even use AI to help you get started when you feel stuck. It is entirely reasonable to ask it for help, such as:
I'm trying to write a has_won() function. What parameters should it have so it can be useful?
OR
I'm trying to write the has_won(board, player) function. But I'm not sure where to start.
What should I think about to get this function started?
Centaur, not Reverse Centaur
As you work, do NOT ask it for specific lines of code. Instead, ask it for advice and suggestions as to what you should do. It is OK to ask it to help you remember names of functions, or to ask it what a specific hard-coded array or string should look like. Treat it like you would a navigator, who is watching over your shoulder. But remember that unlike a human navigator, you have to explicitly ask it to take a look and provide advice/help.
As you work with your AI navigator, remember the centaur vs. reverse centaur distinction. YOU want to be in control and be responsible for the program. If you use the AI successfully, it will not actually speed up your program. However, used well, it should help you write a better program – a program that is easier to read, has fewer bugs, and is more creative. Focus on trying to figure out how to use the AI in such a way that you maintain control, but it helps you write better code.
Start with an MVP
Start by coming up with the simplest program you can – a Minimum Viable Product. Once you get that working, you should slowly, one-by-one, add features to your program that allow it to do more complicated things.
Work with your AI navigator to help figure out what a minimum viable product for this would look like. Also, once you get that working, work with your AI navigator to figure out which feature to add next. What do you need to tell it to actually help you? Most of the time, you rely on your gut instinct about how easy/difficult a feature is when deciding what to do next; how are things different when you are talking to your AI about this?