{"id":83,"date":"2019-10-03T10:51:27","date_gmt":"2019-10-03T14:51:27","guid":{"rendered":"http:\/\/iheinrich.com\/?p=83"},"modified":"2019-10-03T11:47:00","modified_gmt":"2019-10-03T15:47:00","slug":"java-and-javascript","status":"publish","type":"post","link":"https:\/\/iheinrich.com\/index.php\/2019\/10\/03\/java-and-javascript\/","title":{"rendered":"Java and JavaScript"},"content":{"rendered":"\n<p>I was sitting in a meeting and there was a bit of confusion about whether the specification called for Java or JavaScript.<\/p>\n\n\n\n<p>When I asked about which one it was, I got this amazingly hysterical answer.<\/p>\n\n\n\n<p>\u201cJava or JavaScript? Doesn\u2019t matter, it\u2019s really the same\u2026\u201d<\/p>\n\n\n\n<p><strong>Yowza.<\/strong><\/p>\n\n\n\n<p>Allow me to clarify, in case you find yourself locked in a room with \npeople who speak only in buzzwords and really have no idea what they are\n talking about.<\/p>\n\n\n\n<p>Java is a programming language written in 1995 by James Gosling. The \ndream was that it would be a \u201cwrite once, run everywhere\u201d language. It \nruns on a Java Virtual Machine, and it\u2019s hugely popular to teach on \ncollege campus. <\/p>\n\n\n\n<p>Also, there are like a billion unemployed Java developers. <\/p>\n\n\n\n<p><strong>Let\u2019s take a look at \u201cHello World\u201d in Java.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nclass HelloWorldApp {\n    public static void main(String[] args) {\n        System.out.println(\"Hello World!\"); \/\/ Prints the string to the console.\n    }\n}<\/code><\/pre>\n\n\n\n<p>Classes, Public, Static, void,\u2026. it\u2019s not for the casual relaxing day of coding by the beach.<\/p>\n\n\n\n<p><em>JavaScript has nothing in common with Java.<\/em> It is a completely different language with a similar naming. <\/p>\n\n\n\n<p>Programs in JavaScript are called scripts. They need no compilation, \nyou just write a script, append it to HTML-page and it works.<\/p>\n\n\n\n<p><strong>Let\u2019s take a look at \u201cHello World\u201d in JavaScript.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script> \n      alert('Hello, World!') \n&lt;\/script><\/code><\/pre>\n\n\n\n<p>Really simple, and runs in most every browser. <\/p>\n\n\n\n<p>Oh yeah, and they are NOT THE SAME.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was sitting in a meeting and there was a bit of confusion about whether the specification called for Java&#8230;<\/p>\n","protected":false},"author":1,"featured_media":85,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9],"tags":[],"class_list":["post-83","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-comp_languages","wpcat-9-id"],"_links":{"self":[{"href":"https:\/\/iheinrich.com\/index.php\/wp-json\/wp\/v2\/posts\/83","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iheinrich.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iheinrich.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iheinrich.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iheinrich.com\/index.php\/wp-json\/wp\/v2\/comments?post=83"}],"version-history":[{"count":1,"href":"https:\/\/iheinrich.com\/index.php\/wp-json\/wp\/v2\/posts\/83\/revisions"}],"predecessor-version":[{"id":84,"href":"https:\/\/iheinrich.com\/index.php\/wp-json\/wp\/v2\/posts\/83\/revisions\/84"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iheinrich.com\/index.php\/wp-json\/wp\/v2\/media\/85"}],"wp:attachment":[{"href":"https:\/\/iheinrich.com\/index.php\/wp-json\/wp\/v2\/media?parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iheinrich.com\/index.php\/wp-json\/wp\/v2\/categories?post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iheinrich.com\/index.php\/wp-json\/wp\/v2\/tags?post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}