Skip to main content
Aileron at Work

From Python Amnesia to a Poker Training App

By October 22, 2025November 5th, 2025No Comments

How AI “Vibe Coding” Turned Rusty Skills into Software, Fast

The Backstory: A Promise, Some Rusty Python, and a New Way of Building

I promised my sister‑in‑law I’d build her a poker training app. One catch: my Python was rusty from my past life as a statistical analyst.

Enter AI-assisted development—what Andrej Karpathy later popularized as “vibe coding,” a style where you collaborate with AI to explore and implement solutions even when your understanding is partial, letting intuition guide iteration while you firm up the fundamentals underneath [1]. The result wasn’t just working software (backend standing up, APIs close behind); it was a deeper shift in how I think, design, and ship.

Here’s the paradox I discovered: AI doesn’t replace fundamentals—it amplifies them. I’ve always “got” Monte Carlo simulations conceptually. Watching an AI partner scaffold and optimize them in minutes made the paradigm shift tangible. And yet, the skills that mattered most were stubbornly traditional: requirements, architecture, decomposition, and quality assurance. AI just let me execute them at warp speed.

What “Vibe Coding” Really Means (And When It Works)

“Vibe coding” isn’t magical thinking. It’s a practical workflow for modern builders:

  • Start with intent, not syntax. Describe the behavior you want, constraints, and edge cases.
  • Let the AI draft, you direct. Use your domain and product judgment to iterate quickly.
  • Continuously pin to truth. Write tests, check invariants, and instrument performance.
  • Refactor with purpose. Push the AI to explain trade-offs and tighten the architecture.

It’s a fast feedback loop between human intent and machine execution. And it works best when you bring the non-negotiables: clarity of goals, system-level thinking, and discipline about testing and security.

Reference: Karpathy’s description of “vibe coding” in public talks and posts [1].

The Build: From Requirements to a Working Poker Training Backend

I scoped the first milestone to keep value high and complexity manageable:

  • Core user journeys
    • Practice scenarios (preflop and postflop)
    • Instant odds and equity estimates
    • Review of past hands with feedback
  • Non-functional requirements
    • Low latency for simulations
    • Deterministic test modes
    • Clear separation of concerns for future mobile/web clients

A lean, evolvable architecture emerged:

  • Backend API: Python with FastAPI for speed and type hints
  • Simulation service: Monte Carlo engine with vectorized numpy routines
  • Data store: Postgres (users, scenarios, session history)
  • Job queue: Redis/RQ for longer simulations
  • Packaging: Docker for reproducible local and cloud runs
  • Quality gates: pytest, property-based tests, and pre-commit hooks
  • Observability: basic timing metrics and p95 latency alerts

AI copilots helped me scaffold folders, generate starter endpoints, and even draft test cases tied to acceptance criteria. My job remained the same—but faster: validate requirements, choose trade-offs, and enforce guardrails.

Monte Carlo for Poker, In Minutes Instead of Hours

The Monte Carlo method estimates outcomes by running many randomized trials—perfect for poker equity (your chance of winning given hole cards, community cards, and opponents). It’s a classic technique with roots in mid‑20th‑century physics and statistics [2].

I prompted an AI assistant like this: “Generate a vectorized Python function to estimate heads-up Texas Hold’em equity for known hole cards preflop. Use numpy, sample random boards, and return win/tie percentages. Include a deterministic seed.”

It produced a solid draft immediately. After a quick review and a couple of corrections (card encoding and board collision checks), I had a working simulator I could test and optimize.

What AI Accelerated—and What Stayed Non‑Negotiable

AI assistance gave me leverage across the lifecycle:

  • Faster scaffolding. Project structure, API stubs, and data models in minutes.
  • Rapid iteration. “Show me three ways to structure the simulation service; compare trade‑offs.”
  • Test-first workflows. “Generate property-based tests for the evaluator invariants.”

But the irreplaceables didn’t budge:

  • Requirements and product thinking. Choosing which features make learning sticky.
  • Architecture and constraints. Latency targets, separations of concern, evolvability.
  • Problem decomposition. Clear interfaces between API, simulation, and storage.
  • Quality and safety. Tests, code review, reproducibility, and performance budgets.

Independent industry research aligns with this pattern. AI boosts speed, but human judgment, testing, and system design remain critical. A randomized controlled trial from GitHub/Microsoft found developers completed a coding task 55% faster with GitHub Copilot [3]. McKinsey estimates generative AI can lift software development productivity significantly—often cited in the 20–45% range for coding-related activities—while emphasizing the need for robust engineering practices and governance [4]. And outside software, a Stanford/MIT study showed a 14% average productivity gain for customer support agents using AI assistance, with the largest gains for less-experienced workers [5].

Guardrails: How I Kept “Vibes” Grounded in Reality

AI makes it easy to go fast; it’s your job to ensure you’re going right. My minimum bar:

  • Testing strategy
    • Unit tests for critical logic (hand evaluation, deck integrity)
    • Property-based tests for invariants (symmetry, monotonicity)
    • Golden tests for known equity spots
  • Security and supply chain
    • Pin dependencies, scan for vulnerabilities, and review licenses
    • Secrets management and least-privilege access
  • Observability
    • Measure p95/p99 latency, trial throughput, and error rates
  • Risk management
    • Document model prompts and assumptions
    • Human-in-the-loop review for critical changes

For enterprises, frameworks like NIST’s AI Risk Management Framework (AI RMF 1.0) and NIST’s Secure Software Development Framework (SSDF) provide practical guidance to incorporate AI while maintaining safety and quality [6][7]. On delivery excellence, the DORA/Accelerate research continues to link test automation, trunk-based development, and continuous delivery to higher performance—which still applies in an AI-augmented world [8].

Why This Matters for Enterprise Leaders

Here’s the strategic unlock I felt firsthand: the bottleneck is less about technical capacity and more about imagination and orchestration. If AI is framed only as a cost-cutting lever, you risk shrinking headcount rather than expanding capability.

A better question: What could your teams attempt if they had 2–4x more iteration cycles each week, with the same headcount?

Evidence suggests the upside is real when paired with good practice:

  • Speed with quality: RCT evidence of faster completion with AI coding assistants [3].
  • Higher leverage across roles: GenAI productivity gains appear strongest for routine tasks, raising the floor and freeing experts for harder problems [5].
  • Potential impact at scale: McKinsey estimates generative AI’s annual economic potential in the trillions globally, with software development a key domain—again, contingent on sound engineering and governance [4].

A Pragmatic 90‑Day Playbook to Pilot AI‑Augmented Delivery

  • Weeks 1–2: Choose the right use cases
    • Small, high-iteration workflows (API stubs, test generation, data scripts)
    • Clear success metrics (cycle time, defect escape rate, p95 latency)
  • Weeks 3–6: Tooling and guardrails
    • Evaluate 1–2 AI coding assistants; standardize prompts and code-review checklists
    • Integrate CI tests, SAST/DAST scans, and dependency checks
  • Weeks 7–10: Measure and adapt
    • Track baseline vs. pilot performance on real tickets
    • Conduct postmortems on AI-induced defects; harden playbooks
  • Week 11+: Scale carefully
    • Expand to adjacent teams and workloads
    • Establish an internal “AI patterns” library with approved templates and examples

Reference frameworks: NIST AI RMF and SSDF for governance and secure development [6][7]; DORA practices for delivery performance [8].

Closing Thoughts (and an Invitation)

Building this poker trainer re-taught me a simple truth: AI made the traditional skills more essential, not less—it just removed much of the grunt work between intent and impact.

Have you ventured into this frontier? Which principles do you consider irreplaceable in an AI‑augmented world—requirements clarity, test discipline, or something else? I’d love to compare notes.

Want to read more about this? Join the conversation on LinkedIn

References

  1. Karpathy, A. “Vibe coding” (public posts and talks). Representative reference: Karpathy, A. “State of GPT” keynote and social posts discussing “vibe coding.” https://twitter.com/karpathy/status/1644739091478036481
  2. Encyclopaedia Britannica. “Monte Carlo method.” https://www.britannica.com/science/Monte-Carlo-method
  3. GitHub & Microsoft. “The Impact of AI on Developer Productivity: Evidence from GitHub Copilot.” 2023 randomized controlled trial. https://github.blog/2023-07-20-research-how-github-copilot-helps-improve-developer-productivity/ and working paper link therein.
  4. McKinsey & Company. “The economic potential of generative AI: The next productivity frontier.” 2023 (with 2024 updates). https://www.mckinsey.com/capabilities/strategy-and-corporate-finance/our-insights/the-economic-potential-of-generative-ai-the-next-productivity-frontier
  5. Brynjolfsson, E., Li, D., & Raymond, L. “Generative AI at Work.” Stanford Digital Economy Lab/MIT, 2023. (Customer support agents improved productivity by ~14% on average.) https://www.nber.org/papers/w31161
  6. NIST. “AI Risk Management Framework (AI RMF 1.0).” 2023. https://www.nist.gov/itl/ai-risk-management-framework
  7. NIST. “Secure Software Development Framework (SSDF), SP 800‑218.” 2022. https://csrc.nist.gov/publications/detail/sp/800-218/final
  8. Google Cloud / DORA. “Accelerate State of DevOps Report.” 2023. https://cloud.google.com/devops/state-of-devops