En empirisk undersökning av en GraphQL-kodgenerator
2025 (Swedish)Independent thesis Basic level (professional degree), 10 credits / 15 HE credits
Student thesis
Abstract [sv]
Studien undersöker hur en GraphQL-schemabaserad kodgenerator påverkar utvecklingsprocessen vid mjukvaruutveckling, med särskilt fokus på produktivitet och utvecklares upplevelser. Bakgrunden till arbetet är ett växande behov av mer effektiva utvecklingsmetoder, där kodgenerering blivit allt vanligare. Trots detta finns det en begränsad mängd jämförande studier mellan manuell programmering och användning av kodgeneratorer.
Undersökningen genomfördes som ett experiment med åtta utvecklare från Lantmäteriet som fördelades på två grupper, en experimentgrupp som använde kodgeneratorn och en kontrollgrupp som programmerade manuellt. Uppgiften bestod i att implementera en enkel back-end applikation. För att mäta utfallet användes kvantitativa mätvariabler såsom utvecklingstid, antal uppfyllda krav, förekomsten av manuella mappningsfel och potentiellt uppfyllda krav. Därtill samlades kvalitativa data genom en enkät där deltagarna beskrev sina upplevelser.
Resultatet visar endast marginella skillnader i utvecklingstid mellan grupperna, men pekar samtidigt på kodgeneratorns potential att effektivisera utvecklingen, särskilt genom att minska antalet strukturella fel. De deltagare som använde kodgeneratorn upplevde den som användarvänlig och tidsbesparande vid skapandet av strukturell kod. Däremot ansågs uppgiften vara för begränsad för att visa verktygets fulla kapacitet.
Slutsatsen är att en GraphQL-schemabaserad kodgenerator kan bidra till en mer effektiv utvecklingsprocess genom att reducera strukturella fel, men att dess påverkan på den totala utvecklingsprocessen är begränsad vid mindre och enklare uppgifter.
Abstract [en]
The study investigates how a GraphQL schema-based code generator affects the software development process, with a particular focus on productivity and developers’ experiences. The background of the study is the growing need for more efficient development methods, where code generation has become increasingly common. Despite this, there is a limited number of comparative studies between manual programming and the use of code generators.
The study was conducted as an experiment involving eight developers from Lantmäteriet, divided into two groups: an experimental group using the code generator and a control group coding manually. The task involved implementing a simple back-end application. To evaluate the outcome, quantitative metrics such as development time, number of fulfilled requirements, occurrence of manual mapping errors, and potentially fulfilled requirements were used. Additionally, qualitative data was collected through a survey in which participants described their experiences.
The results show only marginal differences in development time between the groups, but also indicate the code generator's potential to streamline development, particularly by reducing structural errors. Participants who used the code generator generally found it user-friendly and time-saving for creating structural code. However, the task was considered too limited to demonstrate the full potential of the tool.
The conclusion is that a GraphQL schema-based code generator can contribute to a more efficient development process by reducing structural errors, although its impact on the overall development time is limited when applied to smaller and simpler tasks.
Place, publisher, year, edition, pages
2025. , p. 40
National Category
Computer Systems
Identifiers
URN: urn:nbn:se:hig:diva-47399OAI: oai:DiVA.org:hig-47399DiVA, id: diva2:1971448
External cooperation
Lantmäteriet
Subject / course
Computer science
Educational program
Högskoleingenjör
Supervisors
Examiners
2025-06-252025-06-172025-10-02Bibliographically approved