logoalt Hacker News

wongarsutoday at 10:40 AM5 repliesview on HN

> In practice you will tend to have a few, but you won't be vendoring out critical things like HTTP, TCP, JSON, string sanitation, cryptography

Unless you are Python, where the standard library includes multiple HTTP libraries and everyone installs the requests package anyways.

Few languages have good models for evolving their standard library, so you end up with lots of bad designs sticking around forever. Libraries are much easier to evolve, giving them the advantage in terms of developer UX and performance.


Replies

paintboxtoday at 12:40 PM

What type of developer chooses UX and performance over security? So reckless.

I removed the locks from all the doors, now entering/exiting is 87% faster! After removing all the safety equipment, our vehicles have significantly improved in mileage, acceleration and top speed!

show 3 replies
seunosewatoday at 3:33 PM

requests should be in the Python standard library. Hard choices need to be made.

ptxtoday at 10:52 AM

I'm pretty sure it's really one HTTP library: urllib.request is built on top of http.client. But the very Java-inspired API for the former is awful.

niccetoday at 1:38 PM

> Unless you are Python, where the standard library includes multiple HTTP libraries and everyone installs the requests package anyways.

The amount of time defining same data structures over and over again vs `pip install requests` with well defined data structures.

throwaway2037today at 5:01 PM

    >  Few languages have good models for evolving their standard library
Can you name some examples?
show 1 reply