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

320 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

Language A – DRAW (Square)

Language B – DRAW (Coordinates that make a square)

Language A is easier to code, but will require more processing power/time to draw the square.

Language B doesn’t have to think about a square, it just draws between the coordinates stated.

Both get the same result but it’s when more complexity is needed where the language choice can make a difference. In language A it will be easier to go back and change where the square “spawns”, in B you will have to change all 4 coordinates.

However, if you wanted to make a irregular shape, in language B you can just plot as many coordinates where and when needed and it will just go through and plot through the coordinates. In language A you might have to go draw multiple shapes, stretch and squeeze them, and subtract them from each other to get the result. Stacking much more processing power and time.

It works similar when it comes to networking/rendering/computations. You can generally get the same outcome whatever the language, but in some languages it can require less lines of code and you might have more control over how the result is gained

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