Journal article · 2025 · Open access

The Impact of Prompt Programming on Function-Level Code Generation

Ranim Khojah, Francisco Gomes de Oliveira Neto, Mazen Mohamad, Philipp Leitner

IEEE Transactions on Software Engineering, 51(8), 2381–2395 · Published 10 July 2025 · DOI 10.1109/tse.2025.3587794

Open full textCite this paper

In brief

“The Impact of Prompt Programming on Function-Level Code Generation” is a 2025 journal article by Ranim Khojah and 3 co-authors, published in IEEE Transactions on Software Engineering. OpenAlex counts 80 citations as of 30 November 2026, which puts it in the top 1% of works published in 2025 by citations. It is open access under a CC BY licence: the full text is free to read at IEEE Transactions on Software Engineering.

Citations
80
Most cited in
2026 (64)
Field-weighted impact
29.97
References
52
Authors
4

Abstract

Large Language Models (LLMs) are increasingly used by software engineers for code generation. However, limitations of LLMs such as irrelevant or incorrect code have highlighted the need for prompt programming (or prompt engineering) where engineers apply specific prompt techniques (e.g., chain-of-thought or input-output examples) to improve the generated code. While some prompt techniques have been studied, the impact of different techniques—and their interactions— on code generation is still not fully understood. In this study, we introduce CodePromptEval, a dataset of 7072 prompts designed to evaluate five prompt techniques (few-shot, persona, chain-of-thought, function signature, list of packages) and their effect on the correctness, similarity, and quality of complete functions generated by three LLMs (GPT-4o, Llama3, and Mistral). Our findings show that while certain prompt techniques significantly influence the generated code, combining multiple techniques does not necessarily improve the outcome. Additionally, we observed a trade-off between correctness and quality when using prompt techniques. Our dataset and replication package enable future research on improving LLM-generated code and evaluating new prompt techniques.

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

Khojah, R., Neto, F. G. D. O., Mohamad, M., & Leitner, P. (2025). The Impact of Prompt Programming on Function-Level Code Generation. IEEE Transactions on Software Engineering, 51(8), 2381–2395. https://doi.org/10.1109/tse.2025.3587794

MLA 9

Khojah, Ranim, et al. “The Impact of Prompt Programming on Function-Level Code Generation.” IEEE Transactions on Software Engineering, vol. 51, no. 8, 2025, pp. 2381–2395. https://doi.org/10.1109/tse.2025.3587794.

Chicago

Khojah, Ranim, Francisco Gomes de Oliveira Neto, Mazen Mohamad, and Philipp Leitner. 2025. “The Impact of Prompt Programming on Function-Level Code Generation.” IEEE Transactions on Software Engineering 51 (8): 2381–2395. https://doi.org/10.1109/tse.2025.3587794.

Harvard

Khojah, R. et al. (2025) ‘The Impact of Prompt Programming on Function-Level Code Generation’, IEEE Transactions on Software Engineering, 51(8), pp. 2381–2395. doi:10.1109/tse.2025.3587794.

IEEE

R. Khojah, F. G. D. O. Neto, M. Mohamad, and P. Leitner, “The Impact of Prompt Programming on Function-Level Code Generation,” IEEE Transactions on Software Engineering, vol. 51, no. 8, pp. 2381–2395, 2025, doi: 10.1109/tse.2025.3587794.

BibTeX

@article{khojah2025impact,
  title     = {{The Impact of Prompt Programming on Function-Level Code Generation}},
  author    = {Khojah, Ranim and Neto, Francisco Gomes de Oliveira and Mohamad, Mazen and Leitner, Philipp},
  journal   = {IEEE Transactions on Software Engineering},
  year      = {2025},
  volume    = {51},
  number    = {8},
  pages     = {2381--2395},
  doi       = {10.1109/tse.2025.3587794},
  url       = {https://doi.org/10.1109/tse.2025.3587794}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Citations by year

YearCitationsShare of the best year
202411
20251515
20266464

Its field-weighted citation impact is 29.97: it has been cited 29.97 times as often as the average work of the same field, type and year (1.00 is the world average).

Topic and keywords

Physical Sciences › Computer Science › Information Systems › Software Engineering Research

  • prompt engineering
  • large language models
  • code generation
  • chain-of-thought prompting
  • few-shot prompting
  • persona prompting
  • GPT-4o
  • Llama 3

Work with this paper

Most-cited papers in Computer Science

All highly cited Computer Science papers

Questions about this paper

How do I cite this paper in APA style?

Khojah, R., Neto, F. G. D. O., Mohamad, M., & Leitner, P. (2025). The Impact of Prompt Programming on Function-Level Code Generation. IEEE Transactions on Software Engineering, 51(8), 2381–2395. https://doi.org/10.1109/tse.2025.3587794

How many times has this paper been cited?

80 times, according to OpenAlex on 30 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at IEEE Transactions on Software Engineering: sign in and open the full text from this page.

Who wrote this paper?

Ranim Khojah, Francisco Gomes de Oliveira Neto, Mazen Mohamad, Philipp Leitner.

What is the DOI of this paper?

10.1109/tse.2025.3587794, permanently at https://doi.org/10.1109/tse.2025.3587794. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 30 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.