Hacker News new | past | comments | ask | show | jobs | submit login

I feel like to use even the most basic python tools I need to use a package manager or find solutions for mix matched dependencies.

Is this problem unique to me?






It all depends. For a quick script that I can write in 15 mins that uses an HTTP client, JSON and joins two APIs together, the standard library is OK.

To be fair, it could be almost a bash script (using curl and jq or something like that), but I'm more comfortable with Python.

So for one-off (or almost one-off) scripts, the standard library is worth avoiding dealing with dependencies.


As the comment below alludes to, how many people are just going to import requests as r and then break something else instead of just hitting the client?

In the case of Python, both you the developer and the users need all these packages installed. So it's trouble in perpetuity. The saving grace with Haskell is that it compiles to native binary, so only the developer takes the bullet.

Yeah. I feel nobody uses the standard library. Even for stuff like HTTP there is requests.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: