News for hackers. Stuff that matters.
Re:Java's URL.equals() Performs DNS Resolution by hinkley on Wednesday December 11, 2019 @03:53PM (#21766714)
When I was a Java developer ~8 years ago, "Use java.net.URI" was a whole sentence in my vernacular. Not just as a replacement for URL, but also for all of the dumb string concatenation people were doing to build urls and query parameters.

It was already ancient advice then, but I kept finding myself having to teach it to a new group of people, usually after some incident had happened (because they won't listen until something has already broken)

Re:Java's URL.equals() Performs DNS Resolution by bradgessler on Thursday December 12, 2019 @04:32AM (#21770548)
Yes, I’m constantly giving advice to Ruby and JS developers that “URLs are not strings” and to use URI libraries for manipulation. This is also true for phone numbers, emails, IPs, etc.

Hell, even Rails maintainers rejected a PR I opened that tried to get rails link helpers to work with URI objects.