Answer the question
In order to leave comments, you need to log in
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
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.
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
Those. can we say that Python on the Web replaces PHP and is not particularly intended for "custom" web applications?
Well, write a python translator to JS and you will be happy :-)
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 .
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/
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question