Idea · Aug 27, 2026
Whiteboard-to-Code Studio
Students photograph or upload hand-drawn flowcharts, pseudocode, or UML sketches; a Gemini vision model converts them into runnable Python or Java function stubs with docstrings; a second pass flags potential logic gaps and emits structured design feedback before any implementation begins.
What it would do
Whiteboard-to-Code Studio is a three-week assignment designed around the principle that design artifacts should precede code. Week 1: students select a domain problem from a provided list (binary search tree, simple text tokenizer, basic graph traversal, 2D grid pathfinder) and produce a hand-drawn design artifact: a flowchart, annotated pseudocode, or a sequence diagram on paper or a whiteboard. They photograph or scan the artifact and upload it to the Studio web app. A Gemini 1.5 Pro vision call reads the image and outputs a structured JSON describing the detected functions or procedures, their input/output types, and any decision branches. The student reviews this interpretation in the UI and corrects obvious OCR or inference errors using a simple structured editor (not free text). Week 2: the corrected structured JSON is passed to a second prompt that generates Python or Java function stubs with typed signatures and docstrings describing the intended contract. A third prompt reads all stubs together and emits a 'gap report': a bulleted list of potential logic issues (for example, 'no base case detected for the recursive branch,' 'ambiguous termination condition in the loop,' 'return type inconsistency between branches'). Students must address every flagged gap in a design revision document before they are allowed to start writing implementation code. The implementation phase is unlocked by the instructor reviewing the gap response document. Week 3: students implement the stubs and submit with a self-assessment comparing their final code to the original design artifact, noting what changed and why. Automated tests run on submission. The instructor sees each student's artifact image, the Gemini interpretation, the gap report, the gap response document, and the final implementation side-by-side in a dashboard.
Key features
- Image upload of hand-drawn flowcharts, pseudocode, or UML sketches with Gemini 1.5 Pro vision interpretation
- Structured JSON editor for correcting the vision model's function and branch interpretation
- Automatic Python or Java function stub generation from corrected structured JSON
- Gap report: bulleted list of potential logic issues detected before any implementation starts
- Implementation-phase unlock gated on instructor review of the student's gap response document
- Instructor dashboard showing artifact image, interpretation, gap report, gap response, and implementation side-by-side