There are many ways to test the popularity of a programming language. In the Octoverse report, we counted the major languages used by each contributor to public and private repositories, as well as the number of repositories created and tagged in the major languages.

The programming language that created the most repositories from 2008 to 2018

JavaScript is now used to create more repositories than any other language. The number of repositories created using JavaScript has been rising steadily over the past decade and has leveled off since 2011. At this point, GitHub has nearly a million repositories in total, and new JavaScript servers like Node.js (launched in 2009) allow developers to use the same code for both clients and servers.

As of September 30, 2018, contributors used the most programming languages

JavaScript is also the language most used by contributors in public and private repositories, and this is true in any organization, anywhere in the world. But we’re also seeing the rise of new languages on GitHub. Last year, TypeScript made it into the Top10 public, private, and open source repository programming languages in all regions. Projects like DefinitelyTyped help people use common JavaScript libraries and TypeScript to drive adoption.

We are also seeing some languages becoming less popular. Ruby has dropped in the rankings over the past few years. While the number of contributors written in Ruby is still growing, other languages, such as JavaScript and Python, are growing even faster. New projects are less likely to be written in Ruby, especially for individual users or small organizations, who are more likely to be written in JavaScript, Java, or Python.

Geographic distribution of Language Trends as of September 30, 2018 (used by contributor)

Over the past 12 months, we’ve seen little variation in the programming languages used by region. However, TypeScript ranks higher in South America and Africa than in North America and Europe. This may be due to the relatively “young” developer communities in Africa and South America. The repositories that contributed last year in Africa and South America were generally “younger” than those in North America and Europe. Perhaps this means they are more likely to focus on newer developer technology.

Fastest growing languages (by contributor) as of September 30, 2018

PowerShell has been adopted by many big company projects and is climbing the charts. Similarly, Go has risen in the ranks of different types of repositories across major companies, ranking 9th in open source repositories this year. In addition, static languages that are more secure in thread-safety and interoperability are becoming more popular, with Kotlin, TypeScript, and Rust growing rapidly.

So what made these languages so popular in 2018? We think there are several reasons:

Thread safety With the exception of Python, static language types are on the rise, probably because of their ability to provide greater security and efficiency for individual developers and teams to develop larger applications. TypeScript’s optional static typing adds a layer of security, especially as Kotlin provides greater interactivity while creating trusted thread-safe programs.

Interoperability TypeScript’s rise on the list is partly due to its ability to co-exist and integrate with JavaScript. Rust and Kotlin are also rising in the rankings. Python’s versatility and interoperability are also impressive, as developers can call the Python API directly from Swift, for example.

Interoperability means not only that languages can be used and built for previous communities, but that they can “cross boundaries” and integrate into different communities. Of course, these languages are also open source projects, and are actively maintained on GitHub. Communities that help new languages like Kotlin improve, answer questions, and create resources can foster collaboration between communities in the future.

Original link:

Blog.github.com/2018-11-15-…


Conference recommendation: AICon will open in Beijing from December 20 to 21, where you can learn 40+AI cases from Google, Microsoft, BAT, 360, JINGdong, Meituan, etc., and have face-to-face communication with domestic and foreign first-line technology masters.