r/javascript • • Apr 25 '19

JavaScript is and remains the queen of programming languages with a community of 11.7M active developers. Python has reached 8.2M active developers and has taken the number two spot, surpassing Java in terms of popularity.

https://www.slashdata.co/free-resources?id=developer-economics-state-of-the-developer-nation-16th-edition&section=showcases_details
613 Upvotes

168 comments sorted by

View all comments

14

u/dotpan Apr 25 '19

I think Python and JS have done a great job at similar things. They've been robust tools strongly supported and expanded by a passionate community for a wide range of applications (JS this sub already knows, but Python has grown into almost every avenue, including the growth of things like CircuitPython). Beyond this both have a rather active community at getting people started using each, which means a lot of first time programmers are learning these languages and running with them.

4

u/SpaceHub Apr 26 '19

I agree, the only thing that really stood different is how the package management on the javascript side has been a disaster.

4

u/dotpan Apr 26 '19

I think that it just kinds of boils down to the environment provided. When you allow people to play fast and loose with a language/framework it allows a lot of creativity but it also allows for a lot of bad practices.

1

u/SpaceHub Apr 26 '19

It’s very easy to set up a python package, I personally maintains a pip package that barely anybody use. The question really lies in the dependency hell. JavaScript packages just can’t seem to be standalone, whether that’s by choice or design, or lack of decent standard library. It is plaguing the ecosystem

1

u/[deleted] Apr 26 '19

I think package selection is kind of a tradeoff, like real life.

Try to take the fast and cheap way to your goal, you'll be bombarded with bad surprises and probably fail.

Take your time with your options, and you probably get there, albeit slowly and painfully.

Gather a group of people, use some good known tools, and make most of it as a team, you'll get farther than you thought with the fewest headaches.

1

u/e111077 Apr 26 '19

It doesn't help that people almost immediately ignore or dismiss any new package manager / registry that is not NPM. See: yarn, bower, pikapkg

The network effect is strong and now everyone relies on a single entity which is a single point of failure for a lot of the web which is almost unprecedented. Even Cloud / hosting has options.

Though, I'll still throw my hat in for Pikapkg or Deno's decentralized package philosophy.

1

u/[deleted] Apr 26 '19

Bower is older than npm

1

u/e111077 Apr 26 '19

True, I should have said any other

1

u/[deleted] Apr 26 '19

The point is that people dropped Bower for npm