Python is just perfect or maybe the only one best for data science, machine learning, and deep learning.
How it is for Software Development or Full-Stack Development?
What are the pros and cons of Python if used for Software Development?
That is a difficult question and needs to be analysed on a case by case situation. Not every hosting platform meets every requirement and there may be cases where different tools are a better option.
typically attacks are some form of code injection where a post method doesn’t properly escapse characters and break out of your code and cause bad results to services your application uses.
This is not quite correct, in that the browser runs on JavaScript. So, any code you write in will have to be transpiled/compiled to JavaScript. If your backend is written in Python, the client will run on JS. If your backend is written in Node, your client will run on JS.
One is not more secure than another - just do not give access to your server from your client.
Security is defined by you (the developer). So, it does not matter which language you use, your application can be made secure or not.
If you are working in the browser, JavaScript is the better choice (for the frontend), as it is the language of the browser. There is nothing stopping you from developing the frontend in Python, but, at some point, you need to compile the Python into JavaScript for it to be used.
javascript executes client side meaning it has to download your code. It is the reason why minification is such an important topic with javascript being more heavily used. The “Client” ie the person viewing the site downloads the javascript to be executed. a compiler could possibly minify the code but the browser still downloads it and it’s reverse engineerable.
Yes… my point exactly. All client-side code is JavaScript. All client side code is “reverse engineerable”… this is the crux of the web. That does not make it more or less secure depending on the language. That just means you (as a dev) should not expose your secrets and secure routes, unless needed - language agnostic.
And how is JavaScript for Software development related to Machine Learning, Deep Learning, Natural Language Processing, Speech Recognition, Writing assistants etc.
I can proxy my api calls through a cloud function and you would never know where they are coming from so there are ways to circumvent the security flaws of javascript.
generally the rule is don’t expose your business logic
There are no security flaws in JS. There are human security flaws.
Any code you write in JavaScript can be just as secure as any code you write in any other language.
If you use Python on your backend, it will need to speak to the clientside JS, in the same way if you use JS on your backend, it will need to speak to the clientside JS.
All security issues in clientside code is a developers lack of implementing security - not a flaw in a language.
You can do this in any language. Even JavaScript. At the end of the day, this all boils down to bytecode.
im not a javascript engineer however stating that something has absolutely no security flaws is a naieve approach and afterall humans engineer code which leaves it open to flaws does it now?
This is the case for every language. JavaScript is no different. So, there are no “security flaws of javascript” - just poorly (for security) coded software. I think we agree on this.