Abstract
Computer programming is increasingly being discussed as a practice within librarianship. However, contemporary discussions about the role of code within librarianship often suggest that librarians should or should not learn code while failing to qualify how and why librarians are employing code in a professional capacity rather than IT professionals. By investigating case studies that describe librarians writing code, this paper qualifies popular discussions of code and librarianship with how and why programming is being used in practice by librarians. While these case studies reveal that programming solutions were developed in the context of lack of IT staff, librarians are not taking over roles or projects traditionally afforded to software and web developers; instead, librarians are writing code for data processing and web services as extensions of their normal responsibilities. Further discussion explores software engineering as the primary concern of librarians who code professionally.
TL;DR: Instead of rehashing the debate over whether librarians should learn to code, this paper investigates how they are already using programming. It finds that librarians leverage code as a domain-specific extension of their roles—primarily for complex data processing and web service integration—and argues that the real challenge is adopting software engineering best practices to ensure work is secure and sustainable.
Introduction: Beyond the Binary Debate
For over a decade, the Library and Information Science (LIS) community has been embroiled in a binary debate: is coding a "fundamental literacy" for the modern librarian, or is it a dangerous distraction from core duties? This discourse often lacks nuance, leading to two primary issues. First, the "Voluntary Trap" frames programming as a hobbyist skill rather than a professional necessity. Second, the "IT Imposter Fear" suggests that librarians are crossing professional boundaries into IT territory without proper training, potentially creating insecure or unmaintainable systems.
Author Domenic Rosati seeks to move the needle by investigating the historical origins and contemporary case studies of librarians who code. By understanding the why and how of the practice, the profession can better define the role of programming in librarianship.
Methodology
This paper employs a qualitative approach, combining a historical literature review with an analysis of contemporary case studies:
- Historical Analysis: The author traces the evolution of the "systems librarian" from 1970s automation to the 1990s emergence of the Common Gateway Interface (CGI) and Perl, often referred to as the "Swiss army knife" of library scripting.
- Case Study Synthesis: Rosati reviews published reports where librarians developed their own scripts or applications, categorizing them by function (data processing vs. web services) and motivation (staff shortages vs. domain expertise).
- Conceptual Framework: The paper utilizes Wilkinson’s (2013) schema of "strong essentialism" (everyone should code) versus "weak essentialism" (every library needs someone who codes) to categorize philosophical positions in the field.
Key Insights: The Librarian as Coder
The MARC Barrier and Domain Expertise
A recurring theme in the research is that professional programmers often struggle with the "subtleties of MARC" (Machine-Readable Cataloging). Librarians often must code because they possess the domain-specific knowledge required to interpret and manipulate complex library metadata that generalist IT staff may not fully grasp. This expertise allows them to perform sophisticated data transformations that are central to library operations.
Extension, Not Replacement
Librarians are not typically building enterprise-level infrastructure. Instead, they write "glue code"—scripts to automate the migration of thousands of records or widgets to pull real-time data from an Online Public Access Catalog (OPAC) into a website. These tools are extensions of their existing roles, designed to bridge gaps between disparate systems.
Coding as Communication
Beyond building tools, coding serves as a "social process." It provides librarians with the technical vocabulary to better collaborate with vendors and IT professionals. This shift moves librarians from being "passive consumers" of technology to "active partners" in the development and procurement of library systems.
The Software Engineering Gap
The research highlights a significant challenge: the primary obstacle isn't learning syntax, but adopting software engineering discipline. Case studies rarely mentioned formal testing, version control, or scalability. The author argues that the real risk is "badly engineered and badly tested code" that becomes a maintenance nightmare when the original librarian leaves.
Key areas of concern include:
- Security: Very few case studies addressed how librarians handled vulnerabilities or "attack points" in custom scripts.
- Sustainability: Libraries need coding skills not just to innovate, but to maintain the increasingly complex, customized systems they already own.
Conclusion
The drivers for librarians taking up the keyboard are clear: technological shifts toward dynamic web apps, the massive scale of modern metadata, and persistent resource gaps in IT staffing. While languages like JavaScript and PHP are highly sought after for web services (Maceli, 2015), the focus of LIS education must evolve. To ensure long-term reliability and security, the profession must move from teaching "coding" as a standalone skill to teaching "software engineering" within a library context.
Summary updated