Abstract
Software engineering (SE) is a complex interplay of technical and human factors. While traditionally focussed on functional requirements, research increasingly recognises the impact of human aspects on SE dynamics. This work comprises a series of interconnected studies exploring this issue, focusing on diversity. A tertiary study was conducted to understand the current state of the literature. We identified 16 distinct categories of human aspects in SE, revealing that while Individual Human Aspects and Management are extensively studied, Economic and Environmental Factors remain underexplored. Thus, Stack Overflow was designated as a proxy for the broader software engineering community to examine the interplay of sociotechnical dimensions that shape user contribution, participation, behaviour, and code quality across geographical and socioeconomic boundaries. Countries with robust economies, substantial R&D presence, and mature tech ecosystems exhibited higher user activity and influence. In contrast, underdeveloped countries were found to lag, owing to their nascent tech ecosystems. Similar patterns emerged across US states and cities. Urban tech clusters demonstrated task-oriented communication and higher activity levels, while rural areas showed stronger community engagement and more emotionally expressive communication. Code quality analysis revealed that tech-rich regions, while producing higher code throughput, displayed lower rates of performance and security violations, whereas rural areas demonstrated fewer reliability violations. A final qualitative study validated prior quantitative findings by surveying 209 Stack Overflow users, confirming that gender discrimination creates self-reinforcing cycles of underrepresentation while differences in code quality between genders are perceived as negligible due to the platform’s meritocratic structure. Recommendations include enhancing broadband infrastructure across both rural and metropolitan settings which can address infrastructural inequality. Educational initiatives emphasising hands-on learning could increase demographic representation more effectively than formal computer science education. Findings illuminate how diversity shapes collective intelligence, offering insights for inclusive ecosystems.