Back to search

University of Alberta

Improving Developer Support for Information Seeking and Usage of Third-party Libraries

Abstract

dc:description.abstract

Modern software development relies heavily on third-party libraries. While these libraries enable rapid development, developers often lack complete knowledge about their correct usage. This knowledge gap leads to two major challenges: the need to seek additional information and the risk of incorrectly using library Application Programming Interfaces (APIs). Developers frequently turn to external, community-driven resources such as Stack Overflow for support when they notice incorrect behavior. However, navigating these resources can be inefficient. Additionally, library APIs with complex usage constraints may result in subtle and hard-to-detect bugs that are time-consuming to diagnose and fix. This thesis addresses these challenges through two complementary support mechanisms aimed at improving developer support for both information seeking and the correct usage of third-party libraries. For the first challenge, we investigate how developers can more efficiently navigate information on Stack Overflow. We conduct an empirical study of additional context in Stack Overflow posts i.e., specific technical information mentioned in answers and comments as plain text but not present in the original question tags. Our findings show that additional context occurs in nearly half of the posts we examined, though it appears in only 8% of their sentences. This low density suggests that transforming such context into navigational cues (i.e., tags for answers/comments) would not overwhelm users with clutter. We further find that context related to APIs, libraries/frameworks, and programming languages is most often tied to direct solutions or solution conditions. These findings highlight which technology categories are potentially useful for automatically generating answer/comment tags. For the second challenge, we focus on API misuses of Python data science libraries. We first construct a dataset of misuses (DSMisuse) and categorize them according to existing deep learning misuse taxonomy, which allows us to compare their characteristics to those of deep learning libraries. Our analysis shows that misuses of data science libraries share many characteristics with deep learning misuses. Through our analysis of the misuses, we also introduce a new misuse dimension, data-dependent misuses, where correct API usage depends on the properties of data processed by the API. We also observe that misuses occur even for APIs with explicit usage directives, underscoring the limits of documentation alone. Building on these insights, we design an LLM-based tool, DSChecker, for detecting and fixing API misuses. Through a series of experiments, including an ablation study, a cross-dataset evaluation to test generalization, and a comparison with a prior LLM-based tool, we find that our approach achieves a detect@1 score of 0.618 and a fix@1 score of 0.526, while also generalizing effectively to deep learning misuses. Compared to an existing tool used for deep learning misuses, our method detects 49% more misuses in DSMisuse. Having established its effectiveness under controlled settings, we then evaluate DSChecker in a more realistic scenario where the LLM itself decides which contextual information (e.g., API documentation or variable details) to request (DSChecker_agentic). In this setting, DSChecker_agentic achieved a higher detect@1 score than DSChecker, although fixing misuses was less effective. Together, these contributions provide both empirical insights and practical methods to support developers: helping them more effectively navigate community knowledge, and enabling automated detection and repair of complex API misuses.

Degree

thesis:*
Name thesis:degree_name
Doctor of Philosophy
Level thesis:degree_level
Doctoral
Grantor
University of Alberta
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Galappaththi, Akalanka
Advisor dc:contributor.advisor
  • Nadi, Sarah (Computing Science)

Subjects

dc:subject × 7

Rights

dc:rights
Statement dc:rights
  • This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
Language dc:language.iso
en

Identifiers

dc:identifier.*
DOI dc:identifier.doi
https://doi.org/10.7939/84122

Chain of custody

source
Harvested from
University of Alberta
Base URL
era.library.ualberta.ca/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Galappaththi, Akalanka. Improving Developer Support for Information Seeking and Usage of Third-party Libraries. Doctoral thesis, University of Alberta, 2026. https://doi.org/10.7939/84122