🔸 TL;DR
Inspired by Simon Martinelli's talk at XtremeJ 2026, I experimented with Specification-Driven Development (SDD) using JetBrains Air, Mermaid diagrams, and Spring Boot.
The challenge? Build a Las Vegas slot machine in 2️⃣ iterations, using specifications to drive AI-generated code! 🎰
🔸 1️⃣ STAGE 1: FROM SPECS TO WORKING APP
Starting with a minimal Spring Boot skeleton, I provided Mermaid specifications describing:
▪️ Application architecture and REST API.
▪️ Three random digits (0–9) generated on each spin.
▪️ An interactive SPIN button.
▪️ A stunning Las Vegas casino UI with animations. ✨
🤖 JetBrains Air interpreted the specifications and generated the Java backend and HTML/CSS/JavaScript frontend.
Result: A working slot machine without manually implementing the features!
🔸 2️⃣ STAGE 2: EVOLVING THE APPLICATION
Next, I introduced additional Mermaid specifications defining:
▪️ Winning combinations and payout rules.
▪️ Accumulated credits.
▪️ A deterministic 777 jackpot demonstration. 💰
▪️ UI enhancements to display winnings.
🤖 JetBrains Air extended the existing application instead of rebuilding it from scratch.
Result: New specifications → New features → Working application!
🔸 🎬 WATCH THE FULL DEMO
See the complete experiment, from Mermaid diagrams to a functioning Spring Boot application:
🔸 💻 SOURCE CODE
The Spring Boot project and Mermaid specifications are available on GitHub:
🔸 TAKEAWAYS
▪️ Specifications first: Describe WHAT the software should do before implementing HOW.
▪️ Mermaid as a specification language: Diagrams become actionable context for AI coding agents.
▪️ Incremental development: Add specifications to evolve existing functionality.
▪️ Human oversight remains essential: Review generated code, test behavior, and validate requirements.
▪️ A paradigm shift? Developers could spend more time designing software and less time implementing repetitive code.
💬 Could SDD become the next major evolution of AI-assisted development, or is it just prompting with extra structure?
#Java #SpringBoot #JetBrainsAir #SDD #SpecificationDrivenDevelopment #MermaidJS #AICoding #AIAgents #SoftwareEngineering #XtremeJ
Go further with Java certification:
Java👇
Spring👇
SpringBook👇
JavaFullstackBook👇