A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Registration Rewards



 
 
Thread Tools Rate Thread Display Modes
  #16  
Old August 1st 19, 11:53 AM posted to alt.comp.os.windows-10
nospam
external usenet poster
 
Posts: 4,718
Default Registration Rewards

In article , Eric Stevens
wrote:

I didn't confuse javascript.js with the Java language but I did assume
that javascripts.js did have something to do with Java. Am I wrong?


yes
Ads
  #17  
Old August 1st 19, 12:01 PM posted to alt.comp.os.windows-10
Andy Burns[_6_]
external usenet poster
 
Posts: 1,318
Default Registration Rewards

Eric Stevens wrote:

what are javascripts.js?


javascript is an interpreted scripting language, most often run inside a
web browser, but can be run inside anything else with a script engine
(e.g. node.js is popular)

java is a compiled language, that requires a java virtual machine to run
in (a bit like the old UCSD P-system)

The most they have in common is lots of squiggly brackets and semicolons :-P
  #18  
Old August 1st 19, 12:21 PM posted to alt.comp.os.windows-10
nospam
external usenet poster
 
Posts: 4,718
Default Registration Rewards

In article , Andy Burns
wrote:

java is a compiled language, that requires a java virtual machine to run
in (a bit like the old UCSD P-system)


java can also be compiled to native code, although that's not usually
done.
  #19  
Old August 1st 19, 04:23 PM posted to alt.comp.os.windows-10
Mark Lloyd[_2_]
external usenet poster
 
Posts: 1,756
Default Registration Rewards

On 7/31/19 10:45 AM, Paul wrote:

[snip]

Java has changed a bit over the years, and I've
never been all that curious about it. Seeing as leaving
it installed, is considered an attack surface. Just
like silverlight, flash, .net and tons of other
junk in the trunk.

Â*Â* Paul


From what I heard, the problem is not having Java installed but having
it connected to a browser so web pages could use it. That's something
that newer browsers may not allow.

--
Mark Lloyd
http://notstupid.us/

"God is a divider, not a uniter."
  #20  
Old August 1st 19, 04:27 PM posted to alt.comp.os.windows-10
Sam E[_2_]
external usenet poster
 
Posts: 248
Default Registration Rewards

On 7/31/19 8:48 PM, nospam wrote:

[snip]

javascript (no space), not java.


Sometimes its upper-camelcased (JavaScript) but still no space, although
spellcheckers often want a space in a word like that (the one in
Thunderbird does).

--
"Access denied. Thought you could get in?"
  #21  
Old August 1st 19, 04:29 PM posted to alt.comp.os.windows-10
Mark Lloyd[_2_]
external usenet poster
 
Posts: 1,756
Default Registration Rewards

On 7/31/19 11:56 PM, Eric Stevens wrote:

[snip]

I didn't confuse javascript.js with the Java language but I did assume
that javascripts.js did have something to do with Java. Am I wrong?


Java programs normally have the .jar extension, not .js

--
Mark Lloyd
http://notstupid.us/

"God is a divider, not a uniter."
  #22  
Old August 1st 19, 04:32 PM posted to alt.comp.os.windows-10
Mark Lloyd[_2_]
external usenet poster
 
Posts: 1,756
Default Registration Rewards

On 8/1/19 5:49 AM, Paul wrote:

[snip]

Based on file extension, isn't that text ?

If so, open the file and have a look.


Nearly all the JavaScript code for my website is in .js files.

[snip]

--
Mark Lloyd
http://notstupid.us/

"God is a divider, not a uniter."
  #23  
Old August 1st 19, 04:34 PM posted to alt.comp.os.windows-10
nospam
external usenet poster
 
Posts: 4,718
Default Registration Rewards

In article , Sam E
wrote:

javascript (no space), not java.


Sometimes its upper-camelcased (JavaScript) but still no space, although
spellcheckers often want a space in a word like that (the one in
Thunderbird does).


yet another reason to not use thunderbird.
  #24  
Old August 1st 19, 04:34 PM posted to alt.comp.os.windows-10
Mark Lloyd[_2_]
external usenet poster
 
Posts: 1,756
Default Registration Rewards

On 8/1/19 6:01 AM, Andy Burns wrote:
Eric Stevens wrote:

what are javascripts.js?


javascript is an interpreted scripting language, most often run inside a
web browser, but can be run inside anything else with a script engine
(e.g. node.js is popular)

java is a compiled language, that requires a java virtual machine to run
in (a bit like the old UCSD P-system)

The most they have in common is lots of squiggly brackets and semicolons
:-P


IIRC, when Java was a good thing, the scripting language was renamed
JavaScript with the intent to confuse people to make JS look better.

--
Mark Lloyd
http://notstupid.us/

"God is a divider, not a uniter."
  #25  
Old August 1st 19, 05:00 PM posted to alt.comp.os.windows-10
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default Registration Rewards

Eric Stevens wrote:

what are javascripts.js?


Text files (you can read them in Notepad, for example) that contain the
instructions or code for the script. Javascript lines end with a
semicolon (";"), and the .js files might not use newlines to separate
each script line to reduce the size of the file. That means you may get
one really long physical line in the .js text file that is hard for your
eyes to parse on the semicolon. Running it through a prettyifying or
beautifier tool can make it more legible. Not only would each
Javascript line be on its own physical text line, but it may be
separated to multiple lines with indentation to make it easier to see
the parts of the Javascript command.

Using voidtools' [Search] Everything, my Win10 setup has over two
thousand .js files. They come with Windows. Many Windows tools,
programs, or apps along with those you install may use Javascript. It
isn't just for interpretation within web browsers (i.e., JS engines can
be embedded in other type of programs) although it is a core technology
of the WWW. Some places where Everything found .js files a

Steam (game manager)
CyberPower PowerPanel (UPS monitor and manager)
XnView (image viewer)
AMD CNext (part of their Catalyst/Adrenalin driver settings)
LibreOffice (for help)
Logitech (gaming software for their mouse)
VideoLAN VLC
Some Microsoft apps and OS tools (e.g., CandyCrush although I
uninstalled it, OneNote for Win10, Solitaire collection, Windows Store
app, OneDrive, Edge, Cortana, printer spool for "Print to PDF",
Experience telemetry)
HP printer (help)
Google Chrome (Firefox uses JS, too, but for internal web pages rather
than external files)

It is just a programming language like other choices. Web browsers each
have their own JS engine (variants will use the same engine), but other
programs can interpret the text script, too. HTML is text. XML is
script. VB is text (unless compiled). Powershell and batch (.bat) are
text. Lots of programming languages remain as a text file that some
interpreter has to determine how to execute.

https://en.wikipedia.org/wiki/Interpreted_language
  #26  
Old August 1st 19, 05:22 PM posted to alt.comp.os.windows-10
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default Registration Rewards

Mark Lloyd wrote:

IIRC, when Java was a good thing, the scripting language was renamed
JavaScript with the intent to confuse people to make JS look better.


Javascript diverged from Java almost as soon as it appeared. Despite
have similar root names, Java and Javascript are not the same
programming language. Because how they originated, they do share syntax
but it is referred to being C-like for syntax. Javascript has syntactic
similarity to Java as Java has to C (so Javascript has syntactic
similarity to C, too). Syntatic similarity is only to assist in
migrating programmers to the new language, not that the languages
operate the same.

https://en.wikipedia.org/wiki/Java_(...mming_language)
versus
https://en.wikipedia.org/wiki/JavaScript

Microsoft was not involved in the naming of those programming languages
despite their penchant for using confusing product names might lead you
to believe Microsoft was involved. Mosaic (now Mozilla) named
Javascript after already collaborating with Sun on Java. Mosaic
should've called it SchemeScript or its original LiveScript name.

javascript: The World's Most Misunderstood Programming Language
https://crockford.com/javascript/javascript.html

For awhile, Microsoft tried to compete with Mosaic by creating their own
Jscript language. Rare few have bothered using Jscript as it was a
Microsoftism versus Java and Javascript that were cross-platform.

https://en.wikipedia.org/wiki/JScript

Although users still call it Javascript, it really has been changed to
ECMAscript, but who wants to say "eck-ma-script". Sounds like you're
clearing your throat.

https://en.wikipedia.org/wiki/ECMAScript
  #27  
Old August 2nd 19, 02:24 PM posted to alt.comp.os.windows-10
Tim Slattery[_2_]
external usenet poster
 
Posts: 223
Default Registration Rewards

Mark Lloyd wrote:

On 8/1/19 6:01 AM, Andy Burns wrote:
Eric Stevens wrote:

what are javascripts.js?


javascript is an interpreted scripting language, most often run inside a
web browser, but can be run inside anything else with a script engine
(e.g. node.js is popular)

java is a compiled language, that requires a java virtual machine to run
in (a bit like the old UCSD P-system)

The most they have in common is lots of squiggly brackets and semicolons
:-P


IIRC, when Java was a good thing, the scripting language was renamed
JavaScript with the intent to confuse people to make JS look better.


Way back in the depths of time, Marc Andreesen left the NCSA (National
Center for Supercomputer Applications) at the University of Illinois,
where he had headed a team that put out Mosaic, the first widely
available web browser. He went to silicon valley, where he started
producing the Netscape browser. Before too long Netscape introduced a
scripting language, which they called LiveScript. A very good thing it
was. Then Sun Microsystems introduced their Java language. One use for
it was to write programs that could run in *any* browser on *any*
machine. It became a red-hot buzzword. Netscape wanted some of that
red-hotness, so they renamed "LiveScript" to "JavaScript". The
languages had just about nothing in common except the name, and
everybody has been confused ever after.

There are some syntax similarities (both block-structured, both kindof
C or C++-like syntax). But the languages are VERY different and
intended for VERY different purposes.

--
Tim Slattery
tim at risingdove dot com
  #28  
Old August 2nd 19, 02:27 PM posted to alt.comp.os.windows-10
Tim Slattery[_2_]
external usenet poster
 
Posts: 223
Default Registration Rewards

VanguardLH wrote:

Eric Stevens wrote:

what are javascripts.js?


Text files (you can read them in Notepad, for example) that contain the
instructions or code for the script. Javascript lines end with a
semicolon (";")


Either a semicolon or a newline will terminate a Javascript statement.
As you say, you can put multiple statements on a single line by
separating them with semicolons. The more statements on a single line,
the more difficult it is for another human to figure out your script!

--
Tim Slattery
tim at risingdove dot com
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 02:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.