2014 · 385 citations · 29 references
ComputingComputer ScienceProgramming LanguagesSoftware EngineeringVisual AnalyticsProgramming Language DesignSoftware MetricsStatic Code AnalysisType SystemsCode Quality ImprovementCommitLanguage DesignMultiple RegressionSoftware Quality AttributesSoftware Quality MeasurementSource Code MetricsStrong Typing
What is the effect of programming languages on software quality? This question has been a topic of much debate for a very long time. In this study, we gather a very large data set from GitHub (729 projects, 80 Million SLOC, 29,000 authors, 1.5 million commits, in 17 languages) in an attempt to shed some empirical light on this question. This reasonably large sample size allows us to use a mixed-methods approach, combining multiple regression modeling with visualization and text analytics, to study the effect of language features such as static v.s. dynamic typing, strong v.s. weak typing on software quality. By triangulating findings from different methods, and controlling for confounding effects such as team size, project size, and project history, we report that language design does have a significant, but modest effect on software quality. Most notably, it does appear that strong typing is modestly better than weak typing, and among functional languages, static typing is also somewhat better than dynamic typing. We also find that functional languages are somewhat better than procedural languages. It is worth noting that these modest effects arising from language design are overwhelmingly dominated by the process factors such as project size, team size, and commit size. However, we hasten to caution the reader that even these modest effects might quite possibly be due to other, intangible process factors, e.g., the preference of certain personality types for functional, static and strongly typed languages.
29
Likelihood Ratio Tests for Model Selection and Non-Nested Hypotheses
Quang Vuong · Econometrica · 1989 · 6K citations
David M. Blei · Communications of the ACM · 2012 · 5.5K citations
A theory of type polymorphism in programming
Robin Milner · Journal of Computer and System Sciences · 1978 · 2.2K citations · Full text