Tuesday, November 4, 2008

History of JavaScript

I am going to start off this post with a site that I came across. The videos are very interesting and to me they are worth the time it takes to watch them. The site is http://www.catonmat.net/blog/learning-javascript-programming-language-through-video-lectures/ . He has an interesting way of explain JavaScript.

JavaScript was developed in 1992 by Jim Gosling. He gave it the name of C++++ as it was to be the successor to the language C++. His friends told him that he needed to rename the program so he named it Oak because of a tree outside his window. It was used in interacting television but the company failed. Gosling and his associates decided that the program needed a new name so they named it Java. Then in 1995 it was renamed to HOT JAVA to be used in browsers.

Eich at Netscape was developing program called LiveScript which used JavaScript language in it. Microsoft wanted in on the language, so Gosling teamed up with Microsoft in 1996 and the program received the name JScript.

The program had security problems that needed to be addressed and worked on. The problems with JavaScript finally needed a debugging setup so that it would work correctly in different browsers.

I think that JavaScript will continue to grow and evolve right along with the browsers growing and changing.

I am afraid at this point I don’t care where JavaScript is going, but that is just because I am having a hard time understanding and making it work correctly.

JavaScript or Java

Java and JavaScript always get confused for obvious reasons. To start off the names will throw a person right off the bat. They could have come up with really different names for these programs when they started arguing over them.

The main difference is that Java can stand on its own while JavaScript must be placed inside an HTML document to function. Java is a much larger and more complicated language that creates "standalone" applications. A Java "applet" (so-called because it is a little application) is a fully contained program. JavaScript is text that is fed into a browser that can read it and then is enacted by the browser.

Another major difference is how the language is presented to the user when surfing the web. Java must be compiled into what is known as a "machine language" before it can be run on the Web. Basically what happens is after the programmer writes the Java program and checks it for errors, he or she hands the text over to another computer program that changes the text code into a smaller language. That smaller language is formatted so that it is seen by the computer as a set program with definite beginning and ending points. Nothing can be added to it and nothing can be subtracted without destroying the program.

JavaScript is text-based. It is written into an HTML document and it is run through a browser. You can alter it after it runs and run it again and again. Once the Java is compiled, it is set. Sure, you can go back to the original text and alter it, but then you need to compile again.

It is said that JavaScript’s main benefit is that it can be understood by the common human. I guess that depends on the common human. It is much easier and more robust than Java. It allows for fast creation of Web page events. JavaScript is a little more forgiving than Java. It allows more freedom in the creation of objects. Java is very rigid and requires all items to be denoted and spelled out. JavaScript allows you to call on an item that already exists, like the status bar or the browser itself, and play with just that part. JavaScript is geared to Web pages. Java is geared toward where it is needed most at the time.

A scripting language, script language or extension language is a programming language that controls a software application. "Scripts" are often treated as distinct from "programs", which execute independently from any other application. At the same time they are distinct from the core code of the application, which is usually written in a different language, and by being accessible to the end user they enable the behavior of the application to be adapted to the user's needs. Scripts are often, but not always, interpreted from the source code or "semi-compiled" to byte code which is interpreted, unlike the applications they are associated with, which are traditionally compiled to native machine code for the system on which they run. Scripting languages are nearly always embedded in the application with which they are associated.

The name "script" is derived from the written script of the performing arts, in which dialogue is set down to be spoken by human actors. Early script languages were often called batch languages or job control languages. Such early scripting languages were created to shorten the traditional edit-compile-link-run process.

Monday, November 3, 2008

My Impression Of JavaScript

Well I just can’t use that kind of language online in a blog to explain what I think of JavaScript. What I say in the privacy of my own home is ok, but it wouldn’t be polite to repeat it in a blog.

As you can tell JavaScript is not impressing me, or maybe it’s I’m not impressing JavaScript. My calculator is broken and it doesn’t want to work and I won’t go to the next one until I can figure out the first. Way to much information for me to consume without a lot more time or an example of what I am suppose to be doing. I am just thankful that I decided to try Math this semester or I wouldn’t have even known what this chapter was talking about with integers, equations and exponents. I still fill very lost.

Have I thought of any ways to implement JavaScript yet? Well at this point the garbage can sounds like a really good place to put it. I haven’t given up completely yet but I am going to try and find some help. This might be hard because I don’t think I know anyone in this area that knows anything about JavaScript.

Hopefully my next post will be more positive, but good luck on this assignment to all of my fellow classmates.