What things can we (or should we) be using Python for instead of JavaScript?

In my day to day work as a web dev I use JS all over the stack, but in my free time I've decided (rather pragmatically) to learn Python.

A question for all those monoglot/polyglot pythonistas out there,

What aspects of JavaScript-centric frontend/backend web development could be done more simply, efficiently or successfully in Python?

Off the top of my head I'm thinking:

  • web servers?
  • build system tooling?
Did you find this post useful? Show some love!

There are two very important things to take note of when picking between Python and JavaScript (and other languages in general but more so with JS and Py since they are so similar under the hood) is 1) your preference for syntax and 2) the library support for your workload.

JS and Py are both VM based scripting languages that are great for general purpose programming all types in today's day. However, if you are doing data analytics, machine learning, or other very heavy math intense work, I would go with Python. If you want to make a website, or a native app, and have a very easy time with object manipulation or UI work, then JavaScript if your go-to.

Web servers? Go is lot better than both. It's a new-ish systems programming language made by Google specially designed to be efficient for concurrency and parallel programming.

Build tooling? Any language really works here that gets your compilation and dependency resolution done the fastest.

Hope this helps :)

JavaScript isn't really that good at doing maths, Python have more memories on it's language.

Classic DEV Post from Apr 27

What is your personal Programming ethics?

...

READ POST
Follow @jeffreyuvero to see more of their posts in your feed.
dev.to is now open source!
View Announcement Post View GitHub Repo
Kuda Bux
Member since Jan 8, 2018
Trending on dev.to
A New Vue On JavaScript30 - 02 JS and CSS Clock
#anewvueonjs30 #vue #javascript30 #javascript
What are your favorite terminal apps or scripts, to use for productivity?
#discuss #python #bash #productivity
Leaving the Old Ways - jQuery vs React
#javascript #react #jquery #softwaredevelopment
Explain Grunt Task Runner Like I'm Five
#explainlikeimfive #javascript #discuss
How Web APIs work?
#beginners #webapi #javascript #html
To Use Google Cloud Function As Google Chrome
#beginners #javascript #node #testing
How I learn code on internet and get my first job?
#react #showdev #beginners #javascript
Learning Redux and notes
#javascript #react #redux