4 ms·
> The JS stdlib is not as strong as it could be, nor is python Comparing the js stdlib with python one tells me you never used python. Also the theory that ex
by LtWorf 4y ago
> The JS stdlib is not as strong as it could be, nor is python
Comparing the js stdlib with python one tells me you never used python.
Also the theory that experts move on while noobs stay is just a theory. I'm going to assume you personally moved to rust and need to call yourself an expert.
- LtWorf 4y agoSeems people aren't liking this. However the average python project has 25 dependencies and the average js has 174 (source https://snyk.io/reports/open-source-security/ https://snyk.io/reports/open-source-security/) so perhaps js and python do not have equivalent stdlib?
- wink 4y agoNot sure how good average is. For small-ish projects my experience is more like Python having like 5 of them, with a handful transitive each, if at all and in JS with anything besides a hello world it's n^n^n. The amount of stuff I've put into production with just flask + requests + dbsomething comes to mind, although I don't remember how many transitives those have.
- LtWorf 4y agoI could never understand why people insist on using requests rather than the stdlib (which works just fine). When async became a thing, I remember hitting some bug in aiohttp so I wrote myself a tiny (just doing the bit I needed) HTTP async client, which I figured was easier than wrestling aiohttp into compliance. These days aiohttp is quite nice for async, and for sync I just use the stdlib. My async client, if it can be of interest https://github.com/ltworf/localslackirc/blob/master/slackclient/http.py https://github.com/ltworf/localslackirc/blob/master/slackcli...
- wink 4y agoaiohttp is too new for the time I'm talking about. And no, I would not say that the stdlib was fine and requests was absolutley worth using in Python 2 :)