eli5: How are some programming languages better at different tasks than others?

528 viewsOtherTechnology

For example I am taking Python right now which is known to be “beginner-friendly” but then in highschool I took Java where we did a lot of content relating to classes and object oriented coding. But what makes the languages specialize in these fields specifically?

In: Technology

5 Answers

Anonymous 0 Comments

Languages are generally all built on top of each other. For example, many Python libraries are all written in C/C++ and wrapped in Python, and the Python interpreter itself is written in C.

What may take someone 300 lines in C to properly do may take Python 2 lines, it doesn’t mean those 300 lines in C/C++ aren’t happening, because they are, it’s just not explicitly required for the developer to write it all out as it’s automatically handled by Python, or whatever language you’re doing.

Languages are created to fill a need. Anyone can create their own language, in school I worked with a PhD student who created their own visual programming language to control robot cars. python being interpreted and not compiled and being “beginner-friendly” is because that what they wanted to create to fill the need.

You are viewing 1 out of 5 answers, click here to view all answers.