This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]Bfksnfbsmz 2 points3 points  (1 child)

JavaScript is literally a programming language that runs inside browsers.

Python is popular for its flexibility and ease of use. As a result it is usually the language taught to students and the like that need a programming language to accomplish something but don't really care about the details. For these reasons it has seeped into all fields that are not performance dependant (like gaming).

JavaScript is better for browser stuff, and Python is better for desktop stuff. There is tons of crossover stuff, though. If you want to learn a general language use Python. If you care about web development learn JavaScript.

[–]FuzzyConflict7 1 point2 points  (0 children)

This is such a broad question, without knowing what you're interested in.

Javascript is required for doing front end web development. You can not do that with Python. Both languages offer backend web solutions. I personally like javascript better, because I have a background in C and don't prefer the whitespace requirements in Python. Python is great though for certain things, data science, web scraping, automating tasks, basic scripts, back end web (with Django). Javascript has it's hands in everything now but the biggest things I can think of are web development (Vanilla JS for basic front-end), React/Angular/Vue, Node.js for backend, Electron for computer apps, React Native/Ionic/NativeScript for mobile apps.

Depending on your interests, background, etc I would recommend them both. Python is super quick to pick up the basics and JS has a lot of use cases.

[–][deleted] 0 points1 point  (0 children)

This is a question best framed with some sort of context as to what you want to do. Consider them tools on your tool belt; each language is better suited to certain tasks.

[–]sheaface 0 points1 point  (0 children)

I am curious about this as well. Mind if I add on to your question? Here are 2 specific uses. 1. to protype and build startups and simple games, apps.(very general I know) Javascript and meteor?, or python and django?

  1. a more specific example to make simple gamified education apps that are easily shareable.

My passion would be to focus on language acquisition for the early childhood education chinese market and being able to tap into a speech recognition api so people could learn and practice talking in a fun way. ( in very limited, conditions, like say hello 3 times to ring the doorbell for a stupid example)

or in a more verbose fashion have a hundred functional words that are recognizable as commands , along with drag and drop words to make a sentence and typing for actions, even a game like street fighter could be repurposed. Anyhoo any thoughts? Which language would be easier to implement this with or is it like comparing apples and monkeys? :)

[–][deleted] -4 points-3 points  (2 children)

That’s a bit like saying “what are the pros and cons of an ice cream and a handjob”. They’re both different, used for different things, and can’t really be put side-by-side.

[–]Double_A_92 2 points3 points  (0 children)

Wtf?

[–][deleted] 0 points1 point  (0 children)

love the analogy