473,795 Members | 2,974 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3782
On 2 Sep 2003 23:53:03 -0700, re********@optu snet.com.au
(re********@opt ushome.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/wsoriWindowsScr iptHost.asp>

Regards,
Steve
Jul 20 '05 #2
On 2 Sep 2003 23:53:03 -0700, in comp.lang.javas cript
re********@optu snet.com.au (re********@opt ushome.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****@yourpant sbigpond.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
4330
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 cost way to do sophisticated debugging in IE6 other than to use the debugger described below, which is horribly documented otherwise. I feel debugging is an important aspect of projecting the useability of the language and needs to be made more...
136
9460
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 code was littered with document.all and eval, for example, and I wanted to create a practical list of best practices that they could easily put to use. The above URL is version 1.0 (draft) that resulted. IMO, it is not a replacement for the FAQ,...
6
1567
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. (SEO)?
10
2069
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 products suits them best. They should be able to answer some short questions (type: is your skin a. oily b. sensitive c.dry d.normal) and their score should be added up, resulting in their best-matching (in this case skin care) program. A friend of mine...
84
3976
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. 2. Client side processing: Web server gets form input and passes it to PHP which includes the Javascript written in a way to make the form input processed on the client side and rendered (probably using DOM function calls) on that side as...
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9043
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.