3 ms·
So I'm certainly not a Java developer and I barely know very much about urls, but isn't that a semantically surprising comparison as well? You can host wildly d
by yjftsjthsd-h 3y ago
So I'm certainly not a Java developer and I barely know very much about urls, but isn't that a semantically surprising comparison as well? You can host wildly different websites on the same server/IP as a temporary or permanent arrangement, but I'm not sure I would expect that to make you group them together
- ivan_gammel 3y agoThat's an ancient API that is de facto deprecated by best practices. Java 1.0 was far from perfect regarding the design decisions.
- vips7L 3y agoFrom the docs: > The java.net.URL constructors are deprecated. Developers are encouraged to use java.net.URI to parse or construct a URL.
- afandian 3y agoExcept it accepts some inputs that URI balks at. I don't recall the exact case, but when I was trying to toleratly parse a URI, I fall back a URL and then convert it to a URI.
- vips7L 3y agojava.net.URL is deprecated. It’s a mistake from the 90s.
- paulddraper 3y agoIt is beyond surprising, it is horrifying. Also, URI not URL has been the preferred choice for years and years and years. But the footgun persists, for backwards compatibility