cwdjrxyz wrote:
Noone Here wrote: If one knows JavaScript to a moderate to good level, which other
languages are similar to JS so one could easily read the code and use
the language (obviously after understanding any different terminology)?
I think that PHP would be the logical choice after JS. Some parts of it
are much like JS, except done on the server level. It has the advantage
that it can not be turned off by a viewing browser, as can JS. In fact
some aspects of PHP code are so much like JS that it is easy to make
little mistakes because you use what is correct for JS rather than PHP
unless you pay careful attention. For example, a JS statement does not
have to have a closing ";" if it ends on a line. However a PHP
statement must always have a closing ";". This is one reason why many
say you should always use a closing ";" when writing JS, since this
saves one possible easy mistake when you shift languages.
I should point out, as nearly everyone knows, that many languages can
be used on both PCs and servers. In fact you likely have programs on
your PC that use C++, Java, and likely other higher level languages.
Likewise the same can be true on a server which is just a special
purpose computer. If you are writing programs to be used on PCs, say an
elaborate media processing program, then the next logical language to
learn might well be C++. If you are interested mainly in things on the
web, then, as I suggested, server side PHP is very useful for many. Or
Java might be useful on the server. Again you could use Java or PHP on
programs on a PC if there is an advantage in doing so. However, in the
case of PHP, many find it most useful on the server. Languages come and
go. I am surprised that languages such as html and JS used most often
for web applications have changed as little as they have. I have used
more now dead or depreciated languages than I can recall - Fortran 4
H-level, Algo(a subset of Algol), a microprocessor octal machine
language used for an automated instrument, etc.
In short, the next language you should learn should consider what you
want to do. Actually web pages are only a minor part of the huge field
of computing, and it is easy to forget that many PCs and
state-of-the-art computers are never connected to the web or a network.
Of course it is likely that most posting to this group have at least
some interest in writing code for web pages.