Study: Language Choice Has Only a Small Impact on Code Quality

by Developer.com Staff

Clojure, Haskell, Ruby, Scala and TypeScript are less likely to result in coding errors.

A new study conducted by computer scientists from UC Davis attempts to settle a long-term debate among developers: does the choice of a programming language impact code quality in a given project? The answer, according to the researchers, is yes, but that impact is very small.

The paper, titled "A Large Scale Study of Programming Languages and Code Quality in Github," analyzed 729 GitHub projects written in 17 different languages with 80 million lines of code and 1.5 million commits. They found that C, C++, JavaScript, Objective-C, PHP and Python tended to have slightly more errors than average, while Clojure, Haskell, Ruby, Scala and TypeScript were less likely than average to have bugs.

However, the report authors caution that the impact of the language choice was "quite small." Other factors, such as the size of the project and the size of the team, had a much bigger impact on code quality.

View article

This article was originally published on Thursday Nov 6th 2014
Mobile Site | Full Site