r/talesfromtechsupport • u/raiderrobert • May 22 '13
Javascript != Java
3rd-party contractor came to visit office yesterday, who has "decades" of experience. Conversation came up about JavaScript in one of our products. He says, "Our product doesn't use Java." After an awkward moment with someone who works on the knowledge base nodding in agreement with him, I speak up and delineate the difference between Java and JavaScript.
Later on in the conversation, the same 3rd-party guy followed up with this jewel: "besides, what would anyone even use JavaScript for on the web?"
I proceeded to disable Javascript in my browser and show him.
tl;dr: lasers, dinosaurs, & drums made a guy's head explode
[edit spelling]
144
u/[deleted] May 22 '13
Just about everything.
24
u/FountainsOfFluids May 22 '13
In case someone is reading this who also is unsure of the difference:
Java is an object oriented programming language designed to create small programs that can run on multiple operating systems. It is compiled at run time and can function independent of other software on your computer.
JavaScript is instructions used by a web browser to create dynamic web pages in conjunction with HTML, CSS, and other browser-based tools.
3
u/elmariachi304 May 22 '13
He might have decades of experience in management?
656
u/Sinisterly /? May 22 '13
Best description I've heard: "Java is to JavaScript as Ham is to Hamster".
86
u/BrainWav No longer in IT! May 22 '13
An old boss of mine did this all the time. He'd talk about javascript, but say Java. As far as I know, he knew the difference, he just never used the right term.
Luckily, we all knew what he meant, and could figure out from context when he actually meant Java, but that was very rare.
43
u/Kezaia May 22 '13 edited May 22 '13
Haha, I remembered when I first went to college I thought they were the similar as well. Didn't they name it JavaScript just so people would think its associated with Java?
43
u/EkriirkE Problem Exists Between Keyboard and Chair May 22 '13
Just yesterday a consultant for a 3rd party software I use "fixed" my code by adding curly braces everywhere I hadn't used them, eg
to
because "That's how I've seen the other consultants do it". Granted the net effect is the same, he will not be paid for his time in that service.
21
u/DoISmellBurning May 22 '13
Ah yes, Java Scripting! http://www.beachcherrysoftware.com/services/javaScripting.html
ahem
32
u/HikariKyuubi Free IT for Family? May 22 '13
As someone who had to mcguyver a website in javascript a few months ago for a Distributed Systems course, this post made me giggle. Hilarious when freshmen take a peek at javascript and go "Hey, man, you're not programming in Java properly." Silly peons.
8
u/vertigoacid May 22 '13
A guy I used to work with that was a 3rd level escalation rep believed that Java was everything on the web, and that if you were having problems, upgrading your java would fix them all. Can't get to our (javascript) webmail? Upgrade your java! Dial-up can't connect because you put in the wrong username/password? Upgrade your java!
We don't even offer any Java-based software >_>
6
u/RyoxSinfar May 22 '13
Had a guy at a previous job stepping up to a higher web dev spot, was going to learn some javascript and improve his own skills. They had a few developers there for a product(me and a couple others) and we went over to chat with him and offer some help.
He showed us a book he had gotten from the company's little corner bookshelf titled "Something something learn Java". We took it from him.
10
u/sakurashinken May 22 '13
historically, this decision was made to make javascript benefit from the rising popularity of java. it used to be called livescript, if anyone remembers.
3
u/[deleted] May 22 '13
Well, you cant spell javascript without java, can you ?
6
u/[deleted] May 22 '13
I had an ATT representative try to start explaining the OSI model for some unknown reason... my boss wanted to get a price for a new backbone into our building. Whatever, he wants to show off, sure, he then proceeded to get each layer wrong and completely screwed up the explanation...
I corrected him and then just asked how much would the backbone be! LOL
4
u/venuswasaflytrap May 22 '13
You should probably say "Javascript !== Java", otherwise it might accidentally evaluate as true.
http://longgoldenears.blogspot.co.uk/2007/09/triple-equals-in-javascript.html
2
u/EnergyUK May 22 '13
Work on a JSP site for a client who does this all the time. When java is actually involved it can lead to some very confusing conversations.
2
u/acolyte_to_jippity iPhone WiFi != Patient Care May 22 '13
In one of my INFO classes, the teacher (who was obviously on the non-technical side of IT/IS) told us that "websites can use programming languages like HTML to change the way they appear to end-users."
this was in an HCI class...
2
u/cuerty May 23 '13
Sad history: a few years ago I was working on a company that offered services for mobile devices that got acquired. As part of the fusion one of the leaders in the IT department tried to explain me how vital was Java for HTML 5, when inquired if he was refering to Javascript and how those were different languajes he pointed me to a website with documentation on the subject. Sadly for us the website only talked about Javascript and libraries like Modernizr... I didnt last long there after the fusion.
1
u/[deleted] May 22 '13
We have some guys at our help desk that will reinstall the Java runtime environment when ever they get a javascript error that resetting the browser doesn't fix. I have told them time and time again not to do it, that it is a waste of their time and the customers (internal employees), they nod their head and say they know java is not javascript and then do it again next time....
1
u/[deleted] May 23 '13
You can use JavaScript to script the behavior of Java applets. Bam. No more confusion.
1
u/redwall_hp May 23 '13
But is JavaScript < or > than Java?
1
u/Arx0s 2nd Technician Arnold Judas Rimmer May 23 '13
Decades of experience in what, Fortran?
1
u/maestroTrole Aug 24 '13
Ill admit it. Before I started using it I thought the same thing. Sorry for my stupidity
1
u/[deleted] May 23 '13
TIL.
0
u/smurfhits May 22 '13
!==
ftfy :-)