View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Discussion 1 by Michael Gorbsky

Discussion 1 by Michael Gorbsky

http://www.crockford.com/javascript/survey.html

JavaScript was Netscape's answer to Sun's Java. Although the name seems to imply it, the two languages have nothing to do with each other. JavaScript was written to be used in internet browsers. The language is very powerful in what it can do. However, as the author of the article points out, it is crippled by design flaws that were never corrected.

JavaScript holds true to the C style of functions and variables. One notable difference is the ability to pass in more or less then the required number of parameters to a function. Excess information is ignored and blank variables are set to null. Also, the syntax is different from conventional style programming. For instance, constructors are created with new ConstructorName(), functions are preceded with function FunctionName(). Functions can even be defined inside of other functions. Also, variables are created using var variableName and are not type casted as anything. A variable can contain any type of data, object, float, int, etc. There are many other differences between JavaScript and Java or C.

The author tries to be careful to avoid biasing the reader against JavaScript. However, he talks about the problems with the language harshly. This leads the reader to think that JavaScript, although it will run, has too many problems to be a viable option.

Discussion 1 - Let's burn some firecrackers here!! - Matias Paulez
I found it ironic that, as Matias explained in his article, C and Java are very similar in nature. Even though they have different names they are very closely related. However, Java and JavaScript are completely different in purpose and nature. It just goes to say that inventors will try to fool people by using similar or "safe" sounding names even if the program is something completely new.

Links to this Page