20 ms·
How is JavaScript different from Java?
- pan69 13y agoDidn't it have something to do with cars and carpets?
- angdis 13y agoAnyone can find out how Java is different from Javascript in about 30 seconds. What I would like to know is WHY THE FUCK JAVASCRIPT has the word JAVA in its name?
- RossM 13y agoI remember reading somewhere that it was to piggy-back on Java's popularity.
- joshguthrie 13y agoIn the same way CPP was only a way to cash on C's popularity.
- Baliw 13y agoJava is to JavaScript as ham is to hamster
- dionidium 13y agoAs car is to carpet * http://stackoverflow.com/questions/245062/whats-the-difference-between-javascript-and-java http://stackoverflow.com/questions/245062/whats-the-differen...
- frozenport 13y agoAs rap to rapist?
- drill_sarge 13y ago>They require different plug-ins. I wonder what JavaScript plugin is the best
- dkuntz2 13y agoI thought there was recently a speed test showing V8 to be the fastest. Your definition of best may vary, and my recollection may be wrong.
- paulrademacher 13y agoI installed a JavaScript but it conflicts with my RealPlayer plugin!
- 10098 13y agoYeah, that line made my mind go blank for a moment.
- MildlySerious 13y agoAt least the Javascript plugins don't want me to install the Ask Toolbar when updating.
- mbq 13y agoNoScript (;
- deleted 13y ago[deleted]
- rgbrgb 13y ago1998 called and wants it's "scripting languages" back.
- shaohua 13y agoJava - Write once, debug everywhere. JavaScript - Write once, run everywhere
- 10098 13y agoThis should be the other way around actually.
- neals 13y agoJavaScript - Write everywhere, run once?
- ygra 13y agoUntil the first error in the console ;-)
- Frozenlock 13y agoIndeed. As much as people love to bitch about Java, I've never had to patch applications because it was on a different platform. Javascript however... Let's just say that you can count on IE to make sure you'll have to patch your code at least once.
- rdc12 13y agoThat is one painful page
- david67 13y agoTRUE, that is all plain wrong, amazing ;-)
- millstone 13y agoPersonally I enjoyed all the whitespace in the XML source. Props to mozilla.org for ensuring that dinosaur of a link keeps working!
- chankey_pathak 13y agoLOL you noticed it! :D
- adamnemecek 13y agoTIL that scripting languages are distinct from programming languages.
- deleted 13y ago[deleted]
- doug1001 13y agosort of thing a high school football coach, assigned to teach computer science over the summer, would write on the chalkboard for his students to memorize for the exam.
- cabalamat 13y agoWhat the page should have been: How is JavaScript the same as Java? They both start with the letters J, A, V, A.
- deleted 13y ago[deleted]
- krisajenkins 13y agoThere's a typo on the first point. Instead of, "Java is an OOP programming language," it should read, "Java is an object-oriented OOP programming language." That aside, it's a wonderfully enlightening document clearly written by someone well-versed in the issues. :-D
- Kiro 13y ago"Java is an object-oriented object-oriented programming programming language."? Not sure that I agree.
- olegbl 13y agoIf anything, it should read "Java is an OOP language."
- MaysonL 13y agoIf anything, the whole post should be deleted. Then again, it's Oracle, so who cares?
- wwosik 13y agoAt first I thought you wanted to mean "Java is an class-oriented OOP programming language", but then I heard the whoosh.
- jelled 13y ago>JavaScript code are all in text. Is Java bytecode not text based? If not, how would you classify it?
- JosephRedfern 13y agoNo, it's an array of bytes. Disassembled Java bytecode could be considered text-based, but I'm pretty sure the actual class files are considered binaries.
- MaysonL 13y agoOf course, Java code is all binary, not at all human-readable or writeable. And there are not compilers for Javascript (except for a few JIT compilers in Safari, Chrome, Internet Explorer, and maybe Opera).
- mbq 13y agoActually all modern browsers and standalone interpreters like node.js have a JIT compiler for JavaScript; and while Java's bytecode is still not a machine code and is also JIT compiled by the Java "virtual machine", both languages are equally "scripting" or equally "non-scripting" (wherever you want to put the "scripting" line).
- MaysonL 13y agoI guess I shouldn't have left off the <sarcasm> tag.
- awad 13y agoIs there a historical reason the page is 'java_javascript.xml' but returns an HTML document with text/html mime type?
- deleted 13y ago[deleted]
- jarman 13y agoThey might have static xml files on server and XSLT template engine to produce html
- olegp 13y agoI used Java for 7 years and got burnt out with programming because of the amount of upfront design effort required. I would never start coding because I knew my architecture wasn't abstract enough and refactoring it later would be hard. JavaScript was a breath of fresh air. I could start hacking without thinking about the design, but instead focusing on simplicity and the problem at hand. Refactoring later was trivial. A big part of this is that whereas Java is OO, JS can start out procedural, evolve to be OO and then go functional, all within the same project. I'm now churning out more quality code than ever at https://starthq.com https://starthq.com
- aviraldg 13y ago>> I used Java for 7 years and got burnt out with programming because of the amount of upfront design effort required. That is essential for any software engineering project (and is almost the definition of `engineering`) >> I could start hacking without thinking about the design o.O >> Refactoring later was trivial. I've never heard someone say that about JavaScript -- in fact, I've heard just the reverse. Java tooling makes refactoring much, much easier. Not so for JavaScript.
- olegp 13y agoJust being honest here! This is my experience after coding in different contexts for 23 years. Your mileage may vary ;)
- agibsonccc 13y agoYou're right. As much as people rail on java here, it still has some of if not the best tooling in the industry. You can make javascript pretty easy, but the process is a bit more involved (not a bad thing to know your own code though.) It makes me happy to be able to use sublime for all my programming but java. That being said, I have to agree about the design though. You're only shooting yourself in the foot if you just start coding right away. Even just 10-15 minutes of design up front to understand what the heck you're doing will save hours down the road. I think it's more of a problem of balancing the 2. Some people overdesign and don't get anything done while others just do everything and end up with code rot and technical debt later.
- mistercow 13y ago>Java code needs to be compiled while JavaScript code are all in text. Well, one correct bullet point out of four is, uh, I guess it's better than zero.
- rspeer 13y agoCan we just start calling the language "JS" consistently? Other languages get to escape from their stupidly-named origins, such as "Personal Home Page".
- shire 13y agoWhy is there Java in Javascript?