5 Using Blackbox AI to generate base code
This chapter covers
- Establishing and managing persistent user sessions in Flask-based applications
- 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, and finding the right balance between AI-generated code and human judgment and logic is key to purposeful development.
We will walk through developing our HAM radio practice exam web app. I’ll focus on using Blackbox AI to generate code and accelerate development. However, I will also 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 cooperation between human expertise and AI. We use the tools to accelerate development through suggestions, while providing context, direction, and corrections. This approach will produce code that surpasses what AI could achieve alone, while also accelerating development compared to human-only workflow. Let’s continue our journey!