If algorithms can be converted into code of any language, what is the point in having multiple languages?

343 viewsOtherTechnology

If algorithms can be converted into code of any language, what is the point in having multiple languages?

In: Technology

21 Answers

Anonymous 0 Comments

Because software developers care about more things than just “does it work”.

* What languages is the programmer experienced with?
* How easy was it to write the code?
* How efficiently does the code run?
* How easy is it to read?
* Does the program cause any unwanted side effects?
* How likely is it that that other programmers will be familiar with the language?
* How easy is it to find errors?
* How reliable or prone to errors is the program?
* How easy would it be to add more features to the code in future, or change particular behaviour, if the requirements change?
* How well does the program handle edge cases, failures, or unexpected inputs?
* How easy is it for the end user to run the program?
* Does the program depend on a specific environment? A particular browser or operating system? Particular hardware?

All of these and more are impacted by the choice of programming language.

Programming is no different to any other field. Pick any task or problem one might encounter in their job or daily life. I guarantee you there is more than one way to achieve the same result. Why do some farmers use tractors when they can move dirt with a shovel? Why would anyone drive across the country when flying is much faster? Why are there so many different flavours of ice cream? Why do nails exist when screws can do the same thing?

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