r/AskComputerScience • u/[deleted] • Aug 04 '20
Why so many computer programming languages?
Is it possible to do everything with one language like Python or C++?
I am wondering why there is so many different programming languages.
55
Upvotes
1
u/khedoros Aug 04 '20
Languages are designed with different uses in mind, and make different tradeoffs that are suited to the things they're used for or the circumstances they were developed under. They're also built around different core ideas, and developed according to different philosophies. And sometimes, a new language is written just to fix the perceived shortcomings of a predecessor, or to combine features from two languages in a way that the designer believes will be useful.
Most languages could be used for most things, with some adaptations and extensions. But...no one wants to build something much more complex than a launcher in Bash or Batch scripting. No one really wants to write their web backend in Cobol, their quick utility script in C, and their AAA video game in Ruby. No one wants to try to write their OS kernel in Javascript or their web frontend in Haskell.