Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any other programming languages for client side programming besides javascript? [duplicate]

Did web browsers support any form of VM bytecode for client side languages? And how did javascript become the exclusive language for the web?

Edit: I should have clarified. Is JavaScript the only language for operating on the HTML DOM?

like image 329
Berlin Brown Avatar asked Mar 13 '11 05:03

Berlin Brown


People also ask

What programming languages are used for client-side programming?

Client-side code is written using HTML, CSS, and JavaScript — it is run inside a web browser and has little or no access to the underlying operating system (including limited access to the file system).

Is JavaScript the only client-side language?

JavaScript isn't, and never was “the only client-side language”. At most, for a certain period of time, JavaScript was the only programming language with built-in support in all major browsers. Given the popularity of the Web, that made JavaScript very successful. How can you write cleaner code in Javascript?

What language can I use instead of JavaScript?

Python is one of the most popular alternatives to JavaScript for backend development. The Python language has a very simple syntax that easy to grasp for the newbies too. It gives more clarity as the language is very easy to read and anyone working with you on your code can easily understand it.

Can Python be used for client-side scripting?

Besides, running Python scripts on the client-side has several benefits. We can get the full potential of Python without having to convert it into JS as we do in Tensorflow.


4 Answers

Check out CoffeeScript. It is compiled to JavaScript so can be used anywhere JavaScript can be used.

JavaScript being the target of compilation is now the VM of the Web. 15 years ago it was Java that was to be the language of the Web, but it failed for various reasons.

If you're interested why, I recommend watching the talks by Douglas Crockford.

like image 156
rsp Avatar answered Nov 15 '22 00:11

rsp


The main other one is VBScript, which is supported by IE. There are also several languages that compile to JavaScript, including Pyjamas (Python), GWT (Java), and CoffeeScript

like image 42
Matthew Flaschen Avatar answered Nov 14 '22 22:11

Matthew Flaschen


Highly recommend sticking with javascript. Its very easy to use once you get the hang of it and it gives you a foundation for other things like actionscript which is used with Flash and other Adobe technologies.

like image 29
Kenneth Avatar answered Nov 14 '22 23:11

Kenneth


Yes.

Three others are currently used fairly frequently: Flash, Java, and Silverlight.

With the exception of Flash for Google Chrome and VBScript for Internet Explorer 7 and below, web browsers haven't supported any other client side language out of the box.

To answer your question about how JavaScript become so widely used, please see this question and its answers:

https://softwareengineering.stackexchange.com/questions/28947/how-did-javascript-become-popular

Edit

Java, Flash, and Silverlight cannot interact with the DOM directly, but they can manipulate the DOM interacting with JavaScript. If your question is limited to languages that can directly interact with the DOM, you're left with only JavaScript and the now-defunct VBScript.

like image 40
ClosureCowboy Avatar answered Nov 14 '22 23:11

ClosureCowboy