Thread: More languages?
View Single Post
Old Dec 8th, 2005, 3:21 PM   #7
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,208
Rep Power: 5 grumpy is on a distinguished road
Quote:
Originally Posted by Arevos
All from different languages, but all rather similar. Thus, the confusion that arises is less so than one might initially expect.
Depends on which way you look at it. If you are reading someone elses code, the similarities are more obvious in your examples. If you are writing code, the similarities are not as obvious (eg if you use a syntax from C, you will confuse a Fortran compiler).

And try giving an example, even for your simple case, in assembler!

If you are doing more advanced things than your example, the visual differences between languages become more obvious as well.

Quote:
Originally Posted by Arevos
There is, however, an awfully large difference between the performance of different computer languages in different situations. A book written in English will not be significantly shorter or longer than the same book written in German. A program written in C will be significantly faster than a program written in, say, Ruby - and likewise, a program written in C will probably take a lot longer to write than one in Ruby!
For non-trivial programs (and your examples are reasonably characterised as trivial) it will also be less obvious that the program in C and the one in Ruby actually do the same thing.
grumpy is offline   Reply With Quote