473,385 Members | 1,311 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

JavaScript as a general purpose programming language?

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
3 3756
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
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
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: Jeff | last post by:
Use the MS Script Editor included free with MS Office 2002 and above, for debugging Internet Explorer (IE). This subject is of great interest to many JS developers, as there is no obvious, low...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
6
by: John | last post by:
Hello, I was thinking of trying out JavaScript and learn it on my own. I had a few questions though. Is it still popular with businesses today? Is JavaScript bad for search engine opt....
10
by: Antha | last post by:
Hi! I have a small e-commerce site but for everything else webrelated I'm practically virgin... I'd like to offer some sort of quiz in my shop so people can interactively find out which...
84
by: Patient Guy | last post by:
Which is the better approach in working with Javascript? 1. Server side processing: Web server gets form input, runs it into the Javascript module, and PHP collects the output for document prep....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.