top | item 2982095

Java Vs. JavaScript

143 points| rkwz | 14 years ago |ask.metafilter.com | reply

23 comments

order
[+] ChuckMcM|14 years ago|reply
Actually, it wasn't 10 days. As I recall (and I was at Sun at the time in the 'liveoak' group which was to become the Java group) Netscape already had been thinking along these lines and something they called 'netscript' which was their view of how to increase the interactivity of web pages. The original suggestion was to flush it and go with Java to fill this niche, but it was pointed out that having a 'light weight' interpreter already in the browser was useful when all you needed was a "little" interactivity (like a pop up over a form field to tell you what it wanted). No doubt somewhere I've got a 1/4" (QIC) tape with my old Sun email which would let me tell you definitively but that is my recollection. There was concern that people would not know which to use 'netscript' or 'java' and so somebody (and I don't recall who) suggested it be called 'javascript' so that it would be clear it was a lighter weight way of adding interactivity than 'Java'. (most folks at the time thought of 'scripting' languages as light weight languages). The thought being "If its small and trivial just do it in javascript, if its bigger and more sophisticated step up to the power of Java." At the time I don't think anyone anticipated how much could be put into Javascript, nor how tight fisted Sun would become around Java.
[+] joshu|14 years ago|reply
IIRC it was called Livescript.
[+] dasil003|14 years ago|reply
Sorta funny how things work out.

Berners-Lee probably had no idea that his little invention could end up making the Internet relevant to billions and basically sidelining Microsoft.

[+] tychobrahe|14 years ago|reply
I love the whole tone of the article and how Brendan Eich is painted as the hero. Because he is. He managed to make a language that, despite its simplicity, is still in its peak after 16 years of heavy mainstream usage.

I discovered functional programming because of JavaScript (via Joel Spolsky, in 2006!!) and I must say something: Thank you Brendan.

[+] scottyallen|14 years ago|reply
Java is to Javascript as car is to carpet.
[+] wbienek|14 years ago|reply
Car is to CARriage..:)
[+] jessevondoom|14 years ago|reply
Summary: "kind of, but not really." Only in the comments is the name LiveScript mentioned. I remember actually playing with JS as LS in the Netscape 2.0 days.

So the gist is kind of there, but if you want actual history I'd suggest :http://en.wikipedia.org/wiki/JavaScript#History

[+] retube|14 years ago|reply
That's a nice little bit of history there. Not sure how much apocryphal and how much true though.

As I understood it one of the reasons js really took off was Microsoft's addition of XHR requests. Is that right?

[+] mibbit|14 years ago|reply
XHR was introduced many years after js was extremely popular. Also XHR doesn't add anything technically. The same thing can be achieved with dynamically adding <script> tags, or using an iframe, or a number of other methods.

The introduction of the buzzword 'ajax' certainly popularized what people had already been doing for years though.

[+] aasarava|14 years ago|reply
"Describe the difference between Java and Javascript" is actually one of the first technical questions I ask when hiring developers (or otherwise evaluating the skills of anyone in a technical, Web-related position.)

When I first tried it, years ago, I was a little embarrassed for having asked, because I figured everyone would know the correct answer. Then several candidates totally blew the response, and I realized just how good of a filter the question really is -- and continues to be.

[+] Joeri|14 years ago|reply
Try asking them to explain the difference between GET and POST. It can be enough to know exactly how good the person sitting in front of you is.
[+] gmac|14 years ago|reply
What do you expect as an answer here? Just a basic grasp of what they're for, or a deep computer-sciencey appraisal of the sorts of languages they are? (If the former, you'd really hope those people wouldn't be making it to interview...)
[+] sambeau|14 years ago|reply
What, no mention of "HotJava"? (just to sully the waters)
[+] divvlr|14 years ago|reply
Love javascript. My friends brother works with Brendan at firefox. The fact about him being a genius is true.
[+] dillon|14 years ago|reply
Your tone is absolutely brilliant!!