P
P
plustilino2012-08-09 14:57:27
Python
plustilino, 2012-08-09 14:57:27

Can Python replace JavaScript and Java?

In the future, it is required to create small interactive applications such as flash games embedded on the pages of an information site, but not games and not using flash technology.
At the moment, I understand that I need to learn JavaScript or Java.
However, I really like Python. As far as I understand, it can partially replace JavaScript, but Java applets cannot. Am I speaking correctly?
As far as I understand, Django is mainly used to create a site framework, CMS. Does it make sense to learn Django in this case?

Answer the question

In order to leave comments, you need to log in

11 answer(s)
A
avalak, 2012-08-09
@avalak

If you like Python, you should check out CoffeeScript .

A
Anatoly, 2012-08-09
@taliban

You can’t replace everything with Python, if you replace JAVA (they are both server-side), then JavaScript is in no way, this is the client side (although if you use it as a server side (node.js) then you can replace it and write everything only in python But if applets are written in JAVA, again, it cannot be replaced with python.

K
ks_ks, 2012-08-09
@ks_ks

Python will not replace either Java or JavaScript ->
this is an addition to JS if you want to develop something alone.
In general, they go in bundles, job requirements, as a rule:
For example:
Python->JS->CSS->HTML5 - front-end
or Python->PostgeSQL(MySQL, Oracle)->Thrift(etc.)->RabbitMQ(etc .) - back-end, high loads
If you are learning a programming language, it is better to start with Java, or C #
- then it will be easier to switch to python
than vice versa

P
plustilino, 2012-08-09
@plustilino

Those. can we say that Python on the Web replaces PHP and is not particularly intended for "custom" web applications?

M
mysticmirage, 2012-08-09
@mysticmirage

Java can be replaced with Jython .

[
[email protected]><e, 2012-08-09
@barmaley_exe

Well, write a python translator to JS and you will be happy :-)

A
Alex10, 2012-08-09
@Alex10

I met opinions or rather wishes about embedding LLVM in the browser, it certainly sounds strange, but if this happens, then it will be another leap. It turns out that you can easily develop a frontend in python.
In the meantime, there is still emscripten .

A
akzhan, 2012-08-09
@akzhan

No.

F
FanKiLL, 2012-08-09
@FanKiLL

The answer to your question is no. Java applets are long dead and are very rare on the modern web. Not counting some corporate systems, maybe banks, and even then this is a relic of the past.
You cannot replace Python, for one reason it cannot be executed in the browser as javascript.
"small interactive applications" - you can replace html5 canvas but here again javascript will be needed.
There are 3 options:
javascript
html5
flash
You can also silverlight - but it is not so common.
html5 canvas examples - net.tutsplus.com/articles/web-roundups/21-ridiculously-impressive-html5-canvas-experiments/

L
larionov_n, 2014-04-11
@larionov_n

Python is Backend. (Response to user requests, generation of HTML code with data from BD in templates). It is not suitable for your task.
Answer: Javascript - learn it, use Backbone, Angular.js, jQuery. For WebGL and Canvas games, pixi.js and many other gamedev libraries for HTML5 are capable. It is possible to write code in Python and then compile it to JS. I know JS better than Python. And compiling code from Python to JS will be a horror for me. It’s easier to write in native JS right away (learn it), and then use ready-made solutions.

K
kefirchik, 2015-11-10
@kefirchik

Answer: You can, there is such a browser-based python interpreter Brython , for fun, you can try porting to node.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question