DEV Community

Discussion on: JAVASCRIPT VS PYTHON

Collapse
 
ogrotten profile image
ogrotten

The main difference between today's Python and JS is that Python growth was directed by A Guy (generally speaking), and JS growth was directed by it's community (generally speaking).

Therefore you get weird shit like no switch statement in python because, according to Van Rossum, the proposed syntax wouldn't save anything over just using a stack of thens. Even tho it was a popular proposal, and would clearly increase adoption for being a familiar element from other langs.

And there's other little shit like having array.pop() but no array.push(). Why would you do that?

Meantime, JS class syntax is the same scenario. It's nothing but additional syntax (syntactic sugar) with original JS prototypal inheritance at it's core. But the whole class syntax and structure was put into place specifically to bring JS more into line with programming languages in general.

Python could have been big shit, if not for a couple of huge mistakes... python2 vs python3 being the biggest, and a problem that will clearly never go away. JS faced it's own huge problems with NodeJS vs IO.js vs Ayo.js, but the group eventually worked things out and now it's as popular as ever with excellent direction.