JavaScript as a general purpose programming language?

R

relaxedrob

Howdy All!

I must admit that the more I use and learn JavaScript, the more
convinced I am that it is one of the most expressive languages I know.

Without ways to access file i/o or databases though, can JavaScript be
considered as a serious general purpose language?

Rob
:)
 
S

Steve van Dongen

Howdy All!

I must admit that the more I use and learn JavaScript, the more
convinced I am that it is one of the most expressive languages I know.

Without ways to access file i/o or databases though, can JavaScript be
considered as a serious general purpose language?

Preventing things like file access is simply a limitation / security
feature of the browser OM. Javascript can be used on the server side
(e.g. Server Side Javascript, or ASP in JScript), on the command line
(e.g. WSH), or in HTAs where you can do pretty much anything you want.

<URL:
http://msdn.microsoft.com/workshop/author/hta/hta_node_entry.asp>
<URL:
http://msdn.microsoft.com/library/en-us/script56/html/wsoriWindowsScriptHost.asp>

Regards,
Steve
 
J

Jeff North

On 2 Sep 2003 23:53:03 -0700, in comp.lang.javascript
| Howdy All!
|
| I must admit that the more I use and learn JavaScript, the more
| convinced I am that it is one of the most expressive languages I know.
|
| Without ways to access file i/o or databases though, can JavaScript be
| considered as a serious general purpose language?

Javascript client-side can only deal with the contents of the webpage.
Nothing more, nothing less.

Javascript server-side allows you to access files, databases etc.

On a web page you will probably use both types. Server-side to
retrieve data from a file/database. Client-side to display
calculations and validate the users inputs.
 
D

Douglas Crockford

I must admit that the more I use and learn JavaScript, the more
convinced I am that it is one of the most expressive languages I know.

I agree with you.
Without ways to access file i/o or databases though, can JavaScript be
considered as a serious general purpose language?

The C Programming Language does not have file I/O. I/O is provided by external
libraries such as stdio. In embedded applications, C is sometimes outfitted with
radially different I/O packages.

In browser applications, the runtime environment is provided by the browser.
Since it is expected to run guest code, and because the web is completely
lacking in systematic security, that environment is extremely limited.

JavaScript can be used in a more general fashion. See Microsoft's WSH or IBM's
Sash for examples.

http://www.crockford.com/javascript/javascript.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top