r/AskComputerScience • • 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

33 comments sorted by

View all comments

1

u/deong Aug 04 '20

It's possible to do anything in any of these languages, but possible isn't the right metric to focus on.

Programming languages serve a number of purposes. One of them is to provide a way to generate executable code for a given architecture while allowing programmers to abstract away some of the details. In that regard, they're all the same.

However, they also serve as human communication. People prefer different ways of reading and writing high level code. People have different types of problems to solve. On top of that base of Turing Completeness, languages make choices about what they're going to be good at. Python and C can perform equivalent tasks, but they don't do it in the same way. Programmers want to be able to choose which way they solve a problem based on what's most important to them.

And then there's just "fashion", for lack of a better word. Over time, tastes tend to change and people develop new languages to provide a vehicle for programming in whatever way they find tasteful.

-1

u/agree-with-you Aug 04 '20

I agree, this does seem possible.