News for hackers. Stuff that matters.
Re:JavaScript is Eating the World by thehardsphere on Thursday August 24, 2017 @02:49PM (#15092867)
> It's not like JS is specialized in some very small niche by design -- like e.g. COBOL is.

Uhh, what? You don't consider "programatically manipulate the DOM in the browser" to be a niche?

Re:JavaScript is Eating the World by coldtea on Thursday August 24, 2017 @05:21PM (#15094164)
There's nothing about JS as a language meant specifically to "programatically manipulate the DOM in the browser".

Anything it does related to that is just simple library code and methods on the "document", "element", etc objects -- and that's only when run in the browser where those are available (automatically "imported" let's say). Node doesn't even have the "document" object.

Re:JavaScript is Eating the World by pier25 on Thursday August 24, 2017 @03:24PM (#15093189)
Accessing the DOM is not really part of the language specification, but the browser API, no?
Re:JavaScript is Eating the World by thehardsphere on Thursday August 24, 2017 @04:16PM (#15093677)
And the "Browser API" was invented to do what, exactly? And by what mechanism was said API exposed to developers? And whose cocktail napkin was the specification written on?
Re:JavaScript is Eating the World by coldtea on Thursday August 24, 2017 @05:23PM (#15094179)
>And the "Browser API" was invented to do what, exactly?

Whatever it was inveted to do is totally irrelevant, as the "browser API" is not Javascript the language/syntax but just an API (library/module).

In fact you could trivially implement it in all kinds of programming languages.