This is a comparison of programming languages. The thrust of it is to give an approximation of the strengths and weaknesses of that language compared to other programming languages.
It’s worth noting that each “lang” has its “use case”, so none of them are technically “bad”, though many of them are awkward for doing specific things. They all were designed for some reason or another, and so there’s no best language until we start talking about what it’s used for.
With that said, it really boils down to personal preferences that each individual programmer prefers. Anyone who doesn’t know how to program is, therefore, asking the wrong question, a bit like saying “what musical instrument should I learn?”
There are a few tech stacks that most developers tend to build out, and this stays the same no matter what language:
- A relatively lower-level OS-oriented language, often spun off from C (e.g., C++, C#, F#)
- An object-oriented language (e.g., Python, Java)
- A database language (e.g., MySQL)
The order of the stack learning doesn’t really matter, outside of how challenging the language will be to pick up. Python and Java are easy to learn, but expertly working in Unix requires understanding C, and lots of system administration and “common gateway interface” (CGI) scripts are written in Perl.
Learning a second programming language is a fraction of the difficulty of learning the first, since you’ve already mastered the rigor of thinking in strictly computer-based reasoning.
There are 3 major high-level languages that arose before all the other languages:
- COBOL – a procedural language designed for business use, is still used in the majority of banking transactions because it’s very fast
- Fortran – a language designed for heavier computations, has largely been outmoded by many other languages
- Lisp – a mathematical implementation of computer logic, still exists through a wide variety of implementations.
As of 2019, the top languages on WakaTime were:
- PHP (2,695,295 hrs)
- TypeScript (2,114,010 hrs)
- Java (1,709,433 hrs)
- Python (1,407,783 hrs)
- Vue.js (1,142,832 hrs)
- HTML (1,090,992 hrs)
- C# (771,636 hrs)
- SCSS (543,318 hrs)
- JSON (541,879 hrs)
- Ruby (533,978 hrs)
- Kotlin (457,646 hrs)
- JSX (451,577 hrs)
- Go (418,271 hrs)
Many times, you’ll want to run a console command, and do it based on certain conditions. Most operating systems come with pre-built scripting languages:
- Windows has PowerShell, though it once used batch files.
- Unix generally uses bash, but has a wide variety of other ones (as is the nature of open-source software).
- Most automation software (like AutoHotKey) have their own scripting language.
While BASIC has largely gone out of style, it was designed to be a syntactically easy language, and most of its future iterations (e.g., QBasic, Visual Basic) keep that simplicity.
It can be a bit painful to work with, especially with things like pointers, and that’s why other C-based languages have tried to fill in the gaps.
There are a wide variety of C-based languages:
- C++ was originally called C with Classes. It has many features that C does not have built-in. It has historically been one of the most popular game development languages for a very long time. C syntax is not a good idea to write in C++.
- Objective-C is Apple’s attempt at improving on C, so it’s often the fastest way to program for iOS. All valid C code is valid Objective-C code.
C# is Windows’ attempt to improve on Java, and has very little to do with C technically (though it shares the name). Because of how easy it is to program compared to straight C, many high-end games are programmed in C#.
At first, Bjarne Stroustrup wanted an extension of the C language, but it eventually evolved into its own high-level language.
While the language is general-purpose, it’s frequently a heavily-used language for audio engineering. It is very powerful, though it can sometimes be unwieldy.
One of its downsides is that it’s very complex, and those complexities make it difficult to communicate algorithms to other developers or quickly modify code.
One of the oldest languages alongside FORTRAN and Lisp, created in 1959.
The language processes information fast, which is why most financial transactions are still written in COBOL.
A specific programming language for physical implementations of a computer (e.g., robotics, automotives, 3D printers) that uses Cartesian coordinates to indicate precisely where an object should begin or end.
The code is very low-level: almost like C, but for physical space.
Java was made by a committee, and has tons of unnecessary syntax. With that said, it’s still the industry standard for many domains (such as Android apps), and exists purely because it’s been existing, though it’s waned in popularity somewhat now that other languages like Rust have become more powerful and easier to work with.
While Julia isn’t as popular as the others, it’s a heavily math-based language, so it’s very useful for scientific data management.
While Kotlin isn’t nearly as popular as most other languages on this page, it’s still a good alternative for Android apps if you hate Java.
While many other languages were designed to fix a problem, Lisp was formed strictly as a theoretical mathematical model. For that reason, it ends up being relatively timeless and somewhat of an abstraction unto itself, a bit like C.
Since Lua’s “interpreter” is written in C, it exists as another variant of C.
MATLAB was designed to work with statistical analysis. For that reason, it’s very powerful at crunching probabilities and not useful for many other implementations.
A high-level language. It’s universally accepted, and dominates all across the world. Like BASIC once was, it’s great for beginners to learn, but comes with drawbacks that beginners won’t really care about.
The philosophy behind Python is to create something elegant, simple and clear.
It’s very, very powerful, and the language of choice for heavy-math implementations like machine learning. But, it doesn’t scale well:
- The packaging is bad when there are lots of cross-cutting dependencies.
- There’s no concurrency designed into the language.
- The code ends up becoming heavily typed, since it’s not the dominant form of expression in the language.
This is barely noticeable in a small project, but becomes incredibly painful in a large production system. People working on small projects love it, but not the ones who have to manage millions of lines of code.
In practice, Python is great for creating an MVP as fast as possible, but bogs down and traps developers later.
R, like MATLAB, was designed to work with statistical analysis. For that reason, it’s a bit limited for broader purposes, but very powerful at crunching probabilities.
Rust is meant to be a more memory-safe version of C++. It has become widely supported in most operating systems.
A little project language that had some uniquely interesting features. For this reason, many languages after it have borrowed from it.
Swift is the language for Apple software, more than anything else, especially iOS apps.