4 ms·
This kinda of thing (see: the "left-justify" fiasco) seems unique to NPM. Why is that? Python packages are very easy to import as well, but you don't see this k
by AdmiralAsshat 7y ago
This kinda of thing (see: the "left-justify" fiasco) seems unique to NPM. Why is that? Python packages are very easy to import as well, but you don't see this kind of madness in most python programs.
- voltagex_ 7y agoPython has a standard library.
- hprotagonist 7y agoand you see the other madness there, in which parts of stdlib are absolute garbage so you will always install requests and lxml anyway.
- Cacti 7y agoI’ve been using Python for 20 years and have never used either of those libraries. People _do_ use Python for more than accessing web services and processing HTML, you know. Besides, the stdlib, and Python packaging in general, is unquestionably light years ahead of NPM.
- jessaustin 7y agoOh wow am I glad to read that! What is the python equivalent of "npm publish"? What do I need to install and configure in order for that to work?
- Cacti 7y agoIt’s “twine publish”... And yes the setup is more extensive than NPM, which is exactly why the PyPi ecosystem isn’t the steaming pile of shit that is NPM.
- jessaustin 7y agoHaha "twine". [0] Seems like a real mainstream tool there. Of course I know from previous python debacles that while npm just uploads the directory structure that already works in development, with python one has several obscure and changeable package preparation steps to perform first. You're using some colorful language ITT. "unquestionably light years ahead", "steaming pile of shit", etc. This sort of idiom is good for convincing children. Whom are you trying to convince? [0] https://www.python.org/search/?q=twine&submit= https://www.python.org/search/?q=twine&submit=
- hprotagonist 7y agohttps://sedimental.org/the_packaging_gradient.html https://sedimental.org/the_packaging_gradient.html It depends on what you want to do.
- hprotagonist 7y agopersonally i always pip install attrs numpy pendulum, but my criticism is more or less the same. The stdlib is of variable quality. I'm happy it's there, but there are absolutely crufty old dragons in there these days, and it updates very slowly compared to pypi.
- OskarS 7y agoI found Python's standard library to be generally excellent. Not perfect, by any means, and certainly not "all-encompassing", but that's an impossible standard. But it covers the areas you'd want a standard library to cover, and more besides.
- yesbabyyes 7y agoI'm not that bothered with nodejs (many are careless with packages imported in a production version, but that's quite easily managed) but in all fairness, in node you will always include request, and some xml/html parser.
- jessaustin 7y agoNode works fine when multiple versions of the same package are imported. Python doesn't, and very few other interpreters do either. Multiple version imports become increasingly likely with increased dependencies, so python has a natural brake on dependency numbers. That's why you don't see popular python packages that themselves have lots of dependencies. Even the most popular Node packages can go wild with dependencies, and their dependencies can do the same in turn. Node has this phenomenon that some people consider harmful because it is more capable in this particular sense.
- tln 7y agonpm packages can export a function which allows a smaller unit of modularization. Also it's a bit easier to create and publish on npm.