Context: Stack Overflow (SO) has won the intention from software engineers (e.g., architects) to learn, practice, and utilize development knowledge, such as Architectural Knowledge (AK). But little is known about AK communicated in SO, which is a type of high-level but important knowledge in development. Objective: This study aims to investigate the AK in SO posts in terms of their categories and characteristics as well as their usefulness from the point of view of SO users. Method: We conducted an exploratory study by qualitatively analyzing a statistically representative sample of 968 Architecture Related Posts (ARPs) from SO. Results: The main findings are: (1) architecture related questions can be classified into 9 core categories, in which "architecture configuration" is the most common category, followed by the "architecture decision" category, and (2) architecture related questions that provide clear descriptions together with architectural diagrams increase their likelihood of getting more than one answer, while poorly structured architecture questions tend to only get one answer. Conclusions: Our findings suggest that future research can focus on enabling automated approaches and tools that could facilitate the search and (re)use of AK in SO. SO users can refer to our proposed guidelines to compose architecture related questions with the likelihood of getting more responses in SO.
翻译:目标:本项研究旨在从SO用户的角度,调查SO职位中的AK的类别和特点,以及从SO用户的角度来看AK的有用性。 方法:我们进行了一项探索性研究,对SO968个建筑相关职位(ARPs)的具有统计代表性的样本进行了定性分析。 结果:主要调查结果是:(1) 与建筑有关的问题可分为9个核心类别,其中“建筑配置”是最常见的类别,其次是“建筑决定”类别,其次是“建筑决定”类别;(2) 与建筑图一起提供明确描述的与结构有关的问题,增加了他们获得不止一个答案的可能性,而结构不完善的结构问题往往只能得到一个答案。结论:我们的调查结果表明,未来的研究可以侧重于使自动化的方法和工具能够促进搜索和(重新)使用SOAK有关建筑的答案。