BOOP: Write Right Code

๐Ÿ“… 2025-07-27
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
Novice programmers commonly rely on syntax-oriented, test-driven trial-and-error programming, exhibiting weak systematic reasoning abilities; AI-assisted coding tools exacerbate this issue by frequently generating syntactically correct yet semantically flawed code. To address this, we propose BOOPโ€”the first pedagogical framework enforcing a rigorous four-stage structured programming process: formal specification โ†’ language-agnostic algorithm design โ†’ implementation โ†’ correctness proof. Implemented as a VS Code extension with an OCaml preprocessor, BOOP integrates specification verification and anti-pattern detection. Empirical evaluation demonstrates that BOOP significantly enhances beginnersโ€™ algorithmic thinking, boundary-case analysis, and problem decomposition skills. Preliminary results indicate superior performance over conventional instruction in both depth of algorithmic reasoning and foundational competency development. Educator feedback confirms its pedagogical efficacy and usability.

Technology Category

Natural Language Processing: Code Generation / Program Synthesis from Natural LanguageReasoning under Uncertainty: Probabilistic ProgrammingCognitive Modeling & Cognitive Systems: Conceptual Inference and Reasoning

Application Category

Responsible Web: Human-perceived consequences of algorithmic deployment on the webGraph Algorithms and Modeling for the Web: Algorithms and analysis for incomplete, noisy, or partially observed Web-related graphsSystems and Infrastructure for Web, Mobile and WoT: Experiences and lessons learnt from Web-based algorithms and system deployments
๐Ÿ“ Abstract
Novice programmers frequently adopt a syntax-specific and test-case-driven approach, writing code first and adjusting until programs compile and test cases pass, rather than developing correct solutions through systematic reasoning. AI coding tools exacerbate this challenge by providing syntactically correct but conceptually flawed solutions. In this paper, we introduce BOOP (Blueprint, Operations, OCaml, Proof), a structured framework requiring four mandatory phases: formal specification, language-agnostic algorithm development, implementation, and correctness proof. This shifts focus from ``making code work'' to understanding why code is correct. BOOP was implemented at our institution using a VS Code extension and preprocessor that enforces constraints and identifies counterproductive patterns. Initial evaluation shows improved algorithmic reasoning and reduced trial-and-error debugging. Students reported better edge case understanding and problem decomposition, though some initially found the format verbose. Instructors observed stronger foundational skills compared to traditional approaches.
Problem

Research questions and friction points this paper is trying to address.

Novice programmers rely on trial-and-error coding
AI tools offer flawed solutions without reasoning
BOOP enforces structured correctness-focused development phases
Innovation

Methods, ideas, or system contributions that make the work stand out.

Structured framework with four mandatory phases
VS Code extension enforcing constraints and patterns
Formal specification and correctness proof focus
๐Ÿ”Ž Similar Papers
No similar papers found.