Those horrible articles about "the best / most popular programming languages"

Sick of low quality clickbait articles about "the best" and "the most popular" programming languages? Everyone seems to play this game, even otherwise reputable sites. I suppose they do it because "what language should I learn" is a question that every aspiring programmer has to ask. There's a lot of traffic in it, so they keep churning them out.

Nearly all of these articles are bad, because they are based on irrelevant garbage metrics such as trends in keyword searches, recent Github activity, average salaries, "popularity" (are web developers going to vote for C?) or similar. For example, if a lot of people search for "Javascript" clickbait articles often extrapolate this into "popular" and/or "the best", and slap it into a "top 10" list of languages you should learn.

I can only think that many of these articles are written by people that have no absolutely no development experience, because they are full of ignorant conclusions such as Javascript being "undoubtedly the dominant language of the web" (could not be more wrong) or "Javascript is a general purpose programming language" (no, it's not) or horrific advice like "Javascript is the number one language so that's the one you should learn" (facepalm).

These articles are rubbish and meaningless.

There is no universal "best language". Different languages have different applications and the most suitable language for an aspiring programmer to learn depends on what you want to do. For example, if you want to be a web developer then you need to learn the fundamentals of HTML and CSS, a primary web scripting language such as PHP and the basics of Javascript, because these are the languages that webservers and browsers understand.

Conversely, if you want to work on microcontrollers or do system programming then fast, efficient languages that compile to machine code (eg. C,  C++) are relevant and PHP is not. Android? You need Java, because Android is Java. Desktop applications? Now here you have a lot of choice, you could use C, C++, Java or Python or a host of others, but PHP or Javascript are not going to be appropriate choices.

Another flaw of these clickbait articles is that they rarely consider the level of real world support for languages. You can go learn the latest and greatest language such as Rust, but will you be able to find contributors for your bleeding edge open source project? How many employers will be looking for people with such skills to join their team?

According to most of these articles Python is great and people really like using it, and actually this is mostly true. And there are a couple of solid, well-known Python-based web development frameworks (Django, Flask). But as far as web development goes only about 1% of websites are actually using Python, whereas the horrible and hopelessly out of fashion PHP accounted for around 80% of all websites in 2018. So which language should you learn for web development? It's a no brainer.

Decide what type of development work you want to do, then pick a mainstream, widely supported language that is suitable for that task. And if you're hoping to get a job then absolutely stick to boring industry standard languages, by which I mean the ones that people actually use to build major applications.

If you eventually end up working across more than one domain of programming you will probably need to learn an additional language or two. It's good experience and will broaden your horizons. Don't be tempted to try and shoe horn your favourite (only) language into a role it is not suited for. That's how you end up with horrors like serverside Javascript frameworks.