Re: Java Training For Programmer
"Carl Fink" <carlf@panix.com> wrote in message
news:slrneg3i4j.hn1.carlf@panix2.panix.com...
On 2006-09-08, number6 <dontbother@spammer.com> wrote:
Well then if you have been coding in actionscript using class files and
in an OOP approach then I would think you should be able to put together
a pretty good portfolio fairly quickly consisting of everything you've
done including some java, which you should be able to pick up fairly
quickly if in fact you approach flash development in an OOP manner. The
syntax is not that dissimilar.
Not shocking. ActionScript is based on ECMAScript, which is based on
JavaScript, which was loosely based on Java, after all.
http://en.wikipedia.org/wiki/Javascript
<quote>
There is no real relationship between Java and JavaScript; their
similarities are mostly in basic syntax because both are ultimately derived
from C. Their semantics are quite different and their object models are
unrelated and largely incompatible. Like C and C++, all Java variables and
members are statically typed, whereas all JavaScript variables (as well as
object properties and array elements) may hold a value of any type.
</quote>
Classes are a central concept in Java; so much so that some critics
claim that Java is more of a "Class oriented language" than an "Object
oriented" one. My understanding is that JavaScript doesn't have the concept
of a class at all. Instead, it has a concept of "prototyping" objects.
- Oliver