5 Using BlackboxAI to Generate Base Code
This chapter covers
- Creating and managing persistent user sessions in a Flask application
- Implementing database functionality to track question sets
- Crafting effective prompts for troubleshooting technical errors
- Applying separation of concerns to improve application architecture
- Building a session-based user interface for practice tests
Let’s continue our exploration of generative AI tools by building a real web application. Learning to use these tools effectively is an art. Finding the right balance is key - utilizing AI to generate initial code and suggestions, while applying human judgment and logic.
We will walk through developing our Ham Radio practice exam web app. I want to focus on using BlackboxAI to generate code and accelerate development. However, I will intervene at key points to refine the architecture, ensure separation of concerns, inject our own code, and override AI suggestions when needed.
The goal is to demonstrate effective human and AI collaboration. We want the tools to accelerate development through suggestions, while we (the humans) provide context, direction, and corrections. This will produce higher quality code than AI alone could achieve, and it should produce it faster than we would without AI. Let’s continue our journey.