The Journal of Studies in Language, Culture and Society (Jan 2025)

Cultural References And Metaphors In Programming: The Symbolic Significance Of Variable Names And Comments In Code

  • Selma Mokrani

Journal volume & issue
Vol. 7, no. 2

Abstract

Read online

This paper investigates the symbolic significance of cultural references and metaphors in programming, focusing on their use in variable names and code comments. The study explores how personal anecdotes, naming conventions, and cultural artifacts are integrated into code through a comprehensive email survey of programmers and computer science professors, coupled with content analysis of existing codebases. The research reveals that these elements enhance code readability and memorability and foster a shared cultural context within development teams. Key findings highlight the use of mythology, literature, pop culture, historical references in naming conventions, as well as the impact of personal stories in comments on the codebase community. The study also examines the delicate balance between creative expression and maintaining code clarity, offering insights into best practices for incorporating cultural elements in programming. By illuminating the narrative and symbolic dimensions of coding practices, this paper contributes to a deeper understanding of the human and cultural aspects of software development, with implications for both professional practice and computer science education.

Keywords