By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,504 Members | 1,187 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,504 IT Pros & Developers. It's quick & easy.

JavaScript as a general purpose programming language?

P: n/a
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
:)
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On 2 Sep 2003 23:53:03 -0700, re********@optusnet.com.au
(re********@optushome.com.au) wrote:
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
Jul 20 '05 #2

P: n/a
On 2 Sep 2003 23:53:03 -0700, in comp.lang.javascript
re********@optusnet.com.au (re********@optushome.com.au) wrote:
| 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.
---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 20 '05 #3

P: n/a
> 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

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.