Skip to content
Book Open access

Transforming Code Patterns into Procedural Abstractions: An Empirical Study of De-com-po-si-tion

Jul 2026 · Annual Conference on Innovation and Technology in Computer Science Education · pp. 443-449 · 0 citations · 48 references
Computer Science

TL;DR

This paper empirically study how different algorithmic implementations of the same underlying task affect students' ability to reason about good abstractions through method extraction, and shows that interleaved functional composition is more difficult to decompose.

Abstract

Program decomposition is a core skill in computer science that overlaps with program comprehension, refactoring, and design. Decomposition takes many forms, with one common task at the introductory level being the identification and extraction of meaningful abstraction into separate functions. However, there is limited empirical evidence about how the algorithmic structuring of code affects the difficulty of producing a meaningful decomposition. In this paper, we empirically study how different algorithmic implementations of the same underlying task affect students' ability to reason about good abstractions through method extraction. Grounded in a recent framework on code structuring, we design three functionally equivalent versions of the same task that differ only in how two latent functional patterns relate to each other: sequentially, hierarchically, or interleaved. Using a large-scale controlled study with 994 introductory programming students, we examine students' effort in decomposing the programs, the approaches they adopt, and their perceptions of whether the resulting decomposition improves readability and understanding. Our results show that interleaved functional composition is more difficult to decompose, providing initial empirical support for the framework's hypothesized ordering of composition pattern difficulty. Students also perceive their decompositions of the interleaved version to be less easy to read and understand. We also find that students describe many different approaches of decomposing, and we discuss several implications for teaching and future research.

Read PDF

Similar papers

Open access Aug 2026

Software comprehension in code-centric and model-driven settings: an experimental comparison of models and code

It is demonstrated that models and code achieve comparable overall correctness, and thus models alone may be sufficient in model-centric scenarios where access to code is limited or unavailable, and a consistent structure-behavior comprehension gap is revealed.

Iris Reinhartz-Berger, Monique Snoeck · 0 citations

A Facet-Based Perspective on Code 1 Comprehension Task Design for Empirical Research

This work introduces a facet-based perspective that distinguishes between analytical skills, abstraction, and critical evaluation and proposes a method to guide researchers from research goals to concrete tasks and study design, including considerations for question formulation and response formats.

Luisa Bartl, Marvin Wyrich, Sven Apel et al. · 0 citations
Jul 2026

Improving the Understandability of Conceptual Models via Abstract Notation Engineering

The focus is shifted from individual constructs to recurring configurations of constructs, and abstract notation engineering is proposed as a language-agnostic method for replacing such configurations with higher-level, semantically transparent constructs.

Amine Abbad-Andaloussi, D. Schütt, Kasper Solhøj Jørgensen et al. · 0 citations
#artificial intelligence Preprint Sep 2026

An Empirical Evaluation of Cost-Efficient Large Language Models on Algorithmic Programming Tasks

This study empirically evaluates whether cost-efficient Large Language Models (LLMs) can be trusted to generate enterprise code to a written specification. Three models (Gemini Flash 3, GPT-5.4 mini and Claude Haiku 4.5) were asked to solve 992 algorithmic problems as Java Spring Boot service methods conforming to a ma...

Chandimal Adikari, Nandika Herath · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.