Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28398

Re: Java vs JavaScript

From Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Java vs JavaScript
Date 2014-05-06 12:40 -0500
Organization A noiseless patient Spider
Message-ID <lkb6q4$e79$1@dont-email.me> (permalink)
References (6 earlier) <mok7m9t761rfbdk3b8a901sd4nfansov10@4ax.com> <1gahnlclqokve.6cmmxqyxddui.dlg@40tude.net> <wu-dnTAw5p7Nl_vOnZ2dnUVZ7r2dnZ2d@bt.com> <lk76sk$9o5$1@dont-email.me> <v95im91v4ijeqqe8jpm8vtlllag1m8n69o@4ax.com>

Show all headers | View raw


On 5/6/2014 12:06 PM, Tim Slattery wrote:
>> One point of pedantry I want to bring up: JavaScript the language is not
>> the same as the set of JavaScript libraries used in web programming
>> (often known as DOM).
>
> The DOM (Document Object Model) is NOT a set of Javascript libraries.
> It's the way the browser makes the currently loaded document (usually
> an HTML page) available to the Javascript routines.

The DOM is not part of the core JavaScript language. Ergo, it's a 
library as far as JavaScript is concerned. It certainly includes more 
than the reflection of the document to JS; DOM promises is an example 
(although it has since moved from a DOM feature to a core JS feature).

>> The set of new additions to this repertoire over
>> the past several years has fallen under the terminology of "HTML5"
>> (although I know many web engine developers who dislike that term).
>
> HTML5 encompasses a number of things, see http://diveintohtml5.info
> for a look at the whole thing. It's not more JS libraries. There are
> certainly more JS commands and abilities to take advantage of the new
> features in HTML5.

When most people talk excitedly about HTML5, they often refer not to the 
additions to the declarative syntax of HTML but rather to the APIs like 
Geolocation, IndexedDB, WebWorker, etc. that are basically all JS 
library work. The document you linked to is quite guilty of this: only 4 
of its 11 chapters actually discuss HTML features. Whatever the original 
intent of the terminology, it has become a catchall term in common 
parlance for "everything added to the web platform since the demise of 
Netscape."


-- 
Beware of bugs in the above code; I have only proved it correct, not 
tried it. -- Donald E. Knuth

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Java vs JavaScript Roedy Green <see_website@mindprod.com.invalid> - 2014-04-23 08:39 -0700
  Re: Java vs JavaScript markspace <markspace@nospam.nospam> - 2014-04-23 09:10 -0700
  Re: Java vs JavaScript Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> - 2014-04-23 15:48 -0500
  Re: Java vs JavaScript Silvio <silvio@internet.com> - 2014-04-23 23:36 +0200
    Re: Java vs JavaScript "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-04-27 12:20 +0100
      Re: Java vs JavaScript Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2014-04-27 20:05 +0800
      Re: Java vs JavaScript Joerg Meier <joergmmeier@arcor.de> - 2014-04-27 22:55 +0200
      Re: Java vs JavaScript "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-05-01 08:52 +0100
        Re: Java vs JavaScript Silvio <silvio@internet.com> - 2014-05-01 10:26 +0200
          Re: Java vs JavaScript Gene Wirchenko <genew@telus.net> - 2014-05-01 14:10 -0700
            Re: Java vs JavaScript Silvio <silvio@internet.com> - 2014-05-02 11:10 +0200
              Re: Java vs JavaScript Gene Wirchenko <genew@telus.net> - 2014-05-02 10:20 -0700
                Re: Java vs JavaScript Joerg Meier <joergmmeier@arcor.de> - 2014-05-02 20:16 +0200
                Re: Java vs JavaScript "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-05-04 10:38 +0100
                Re: Java vs JavaScript Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> - 2014-05-05 00:16 -0500
                Re: Java vs JavaScript Tim Slattery <tim@risingdove.com> - 2014-05-06 13:06 -0400
                Re: Java vs JavaScript Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> - 2014-05-06 12:40 -0500
            Re: Java vs JavaScript Simon Lewis <simonlewis2001@gmail.com> - 2014-05-02 12:53 +0200
          Re: Java vs JavaScript Arne VajhĂžj <arne@vajhoej.dk> - 2014-05-01 21:16 -0400
            Re: Java vs JavaScript Silvio <silvio@internet.com> - 2014-05-02 11:17 +0200
  Re: Java vs JavaScript Arne VajhĂžj <arne@vajhoej.dk> - 2014-04-23 22:22 -0400
    Re: Java vs JavaScript Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2014-04-24 16:20 +0800
      Re: Java vs JavaScript Arne VajhĂžj <arne@vajhoej.dk> - 2014-04-29 21:07 -0400
  Re: Java vs JavaScript Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2014-04-24 16:15 +0800
    Re: Java vs JavaScript lipska the kat <lipskathekat@example.com> - 2014-04-27 09:00 +0100
      Re: Java vs JavaScript Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2014-04-27 20:15 +0800
        Re: Java vs JavaScript lipska the kat <lipskathekat@example.com> - 2014-04-27 16:59 +0100
  Re: Java vs JavaScript Ray Osborne <rko153@gmail.com> - 2014-05-22 05:08 -0700

csiph-web