The Most Popular Programming Languages for 2022
Last updated on
According to Wikipedia, “a programming language is a formal language comprising a set of strings that produce various kinds of machine code output.” In other words, computers only understand 0s and 1s, so programming languages allow humans to deliver instructions to the computer in a way the computer can understand.
Programming languages are the interface through which developers make computers perform different tasks, such as notifying an application’s user about an update. There are numerous programming languages available to developers, with each programming language having its own set of rules and syntax. Some programming languages are built for specific purposes, while others are designed for more general purposes.
General purpose programming languages are used by a large number of developers. More developers using a language means more applications are built with it, which attracts more developers who learn and use the language. This flywheel effect causes changes in the popularity of programming languages, while changes in technological paradigms can also affect how programming languages are used.
In this guide, we’ll discuss:
- Programming Language Popularity
- How We Selected the Most Popular Programming Languages
- MagicBell’s Top 10 Programming Languages
Programming Language Popularity
What constitutes the popularity of a programming language? The short answer is that there are numerous factors to take into consideration.
For example, is the most popular programming language the one with:
- the most number of developers?
- the most number of applications developed?
- the most lines of code written?
- the most searches?
- the most job openings?
- the highest number of end users?
There can be an endless number of parameters that can go into the popularity of a programming language, and each of the different parameters has its own set of advantages and disadvantages. This makes it difficult to determine the most popular languages. So, which parameters should we consider?
How We Selected the Most Popular Programming Languages
Due to the multi-faceted nature of programming languages and what constitutes their popularity, compiling and organizing a list of the most popular can be problematic at best. Many organizations have conducted research in effort to achieve this goal, with each organization taking a different approach to solving the problem.
In order to determine the most popular languages, we tracked the number of mentions each language received in the different primary research findings. This methodology provides a more accurate, combined summary of the various findings than simply taking the results of one finding alone.
GitHub, the prominent code repository, determines the most popular programming languages every year. GitHub relies on the millions of repositories hosted on the platform to arrive at the results. The top 10 programming languages according to GitHub’s 2021 State of the Octoverse Report are listed below.
Statista specializes in marketing and consumer data, and its list of the most popular programming languages is based on the results of stakeholder surveys.
According to Statista, the top 10 programming languages of 2021 are as follows:
TIOBE is a software code quality company. Their programming language rankings are determined by several factors, such as the number of skilled engineers worldwide, the number of available courses, and the number of third-party vendors.
The rankings are updated every month, and their top 10 programming languages for November 2021 are listed below.
- Visual Basic
- Assembly Language
RedMonk is a developer-focused industry analysis firm that publishes a list of the top programming languages every quarter. They use publicly available GitHub information to determine the popular programming languages and rank the languages according to the number of projects on GitHub.
The top 10 programming languages as of June 2021 according to RedMonk are:
The PYPL (PopularitY of Programming Language) Index is another publicly available ranking that’s determined by analyzing how often language tutorials are searched for on Google. According to the PYPL Index, the top 10 programming languages for November 2021 are:
MagicBell’s Top 10 Programming Languages
We reviewed the data from the lists above to arrive at the most popular languages; the more mentions a programming language has in the 5 rankings, the higher its overall rank. (C and C++ are considered together.) Accordingly, our rankings for the most popular programming languages are listed below, along with the number of mentions they each have.
(It should be noted that some languages have the same number of mentions and are considered to have the same ranking. Hence, there are a total of 11 languages on the list as several languages have two mentions.)
- Python: 5
- Java: 5
- C++/C: 5
- C#: 4
- Typescript: 4
- PHP: 3
- SQL: 2
- Bash / Shell / Powershell: 2
- Ruby: 2
- HTML/CSS: 2
We will look at each of the top 11 languages in the following sections.
Python was developed in 1991 by Guido van Rossum as an object-oriented programming language and, based on the number of users, is the fastest growing programming language in the world. One big advantage of Python is its versatility, which allows it to be used for a variety of applications. For example, not only can it be used to build websites, but it can also be used in advanced machine learning applications.
As noted earlier, the PYPL popularity index tracks the search results for language tutorials, and as of November 2021, Python accounts for 29.47% of all searches in this area. Python is clearly on an uptrend that isn’t going to diminish any time soon. Google Trends data paints a similar picture, as the search volume for the Python programming language has seen some impressive growth for more than a decade and a half.
Java is a high-level language developed by James Gosling in 1995 and is currently owned and maintained by the Oracle Corporation. The advantage of Java is that the same code can be run on any machine, regardless of hardware, as long as the machine has the Java Runtime Environment installed. This makes programmers’ lives much easier, as they only need to write code once and that same code can then be run on a wide range of machines.
The C programming language is nearly half a century old. Developed in 1972 by Dennis Ritchie for Bell Laboratories, the language gained popularity over the decades in a wide range of applications, such as industrial automation software. C++ was introduced in 1985 as an extension of the original C language and became a popular choice for teaching programming skills to students in schools and colleges. Like its predecessor, C++ also has a wide range of applications.
In the rankings selected for this article, we can see that although C and C++ remain popular, their popularity is waning. Google Trends also paints a similar picture, with the term C++ peaking in search queries in 2004 and then steadily declining.
C# was developed by Microsoft as an alternative to Java for Windows-based computers. Released with .NET in 2002, it is primarily used today for developing mobile applications and games, with many developers choosing to learn and build applications with C# due to its open-source nature.
According to the PYPL index, there is a high demand from new developers to learn C#, and it has the fourth-highest number of search queries for tutorials. Again, as with other languages, the data from Google Trends shows a different picture, with the search volume on a downtrend since peaking in 2005.
Being the most recent language featured, TypeScript is gaining popularity fast and is featured in three of the five rankings chosen for this article. Google Trends tells a similar story, with a steady increase in search queries since 2014.
PHP is a server-side scripting language that was created by Rasmus Lerdorf in 1994. PHP used to be one of the most popular programming languages in the world, but its popularity has been decreasing in recent years. One of the factors that contributed to the popularity of PHP is WordPress, with the open-source content management system using PHP as its primary programming language.
According to data from BuiltWith, almost a third of the top million websites use PHP. Despite this, the programming language has been declining in popularity in recent years, with search queries on a decline since 2004.
SQL (Structured Query Language) is used to interact with relational databases. This is a domain-specific language that finds a place among the most popular programming languages due to its common usage with databases. Most RDBMS use SQL for CRUD (Create, Read, Update, Delete) operations, and SQL can be integrated well with other programming languages for database-related tasks.
With the rise of unstructured data and different languages used for unstructured databases, SQL has been decreasing in popularity over recent years. Google Trends confirms this, with the search volume for SQL on a decline since its peak in 2004.
Bash / Shell / Powershell
Languages used to run on the shell of UNIX-style operating systems are called shell scripts and are referred to as Bash, Shell, or Powershell languages according to the operating system. Shell scripts have been gaining in popularity in recent years due to the rise of cloud computing. With cloud computing, developers access the command line of the cloud systems that are used to deploy the applications. This necessitates the use of shell scripting languages.
Google Trends data shows that the search volume for the term Powershell exploded in the last decade, and this increase is a long-term indicator of Shell/Bash/Powershell potentially gaining in popularity over the next few years.
Ruby is an open-source programming language with an elegant syntax focused on making coding simple and easy. The language was developed by Yukihiro “Matz” Matsumoto in Japan. Today most programming languages are also making coding simpler and, as a result, Ruby has been losing ground in recent years.
According to the PYPL Index, the market share for Ruby tutorials is a paltry 1.05%, indicating that the interest of new developers in Ruby is waning. Google Trends data paints a similar picture with search volume consistently declining since it peaked in 2007.
HTML and CSS form one of the most basic building blocks of the internet, with HTML being used to display information on websites and CSS helping to style it. All websites need HTML and CSS to function, and both HTML and CSS are simple and easy to learn. As a result, there aren’t too many search queries for tutorials or for HTML and CSS as a whole. This is the reason why they score less in popular programming languages even though their use is ubiquitous over the internet.
There are also automated solutions that generate HTML and CSS code, requiring fewer developers to know the languages. This is another factor in their decreasing popularity, with the search volume for HTML consistently declining since Google first started to track its search data.
Over the years many languages have gained popularity while many others have seen their popularity decline. One consideration when it comes to Google Trends data is that while search trends are on the decline for some of the most popular programming languages, the fact that those languages have been around for years means that there are many programmers who already know and use it, therefore there are fewer developers searching for it.
More technological advancements will demand simpler programming languages that are more developer-friendly, and this demand will be met by the creation of newer languages.
The list of the most popular programming languages has seen consistent change over the last few decades, and this change is expected to continue for the foreseeable decades to come.