I guess printf “” > file
I guess printf “” > file
That’s insane
Also lol at the people getting mad at the tea maintainer for “name calling” the guy hired to write up the scam PR
Gig economy or not this idiot should have known better
Sometimes some programs and some downloads have weird slowdowns like this when my VPN is on, even though others remain completely unaffected
The dotcom bubble is a good example of a bubble that’s different from VR and crypto.
Massive investments, lots of dumb projects, the underlying tech (the web) still finds widespread use and past the bubble, the dotcom projects that survived are still a massive industry
People think bubbles necessarily collapse to zero because that’s what web3 did. It just means the market is inflated
Most of the times they have some value under the hype
I already use AI for a lot of stuff including my job. Still waiting vr and crypto to change the world :|
They’re not the same
It looks a lot like win95. I don’t think anything you brought up is relevant
How’s the atlantic anything like the pacific?
Truly nothing in common. Might as well be comparing an apple to caulking a window
Communist != tankie
Tankies are always communists, communists aren’t always tankies
Null pointers, runtime exceptions and try catch blocks in 2023
Having seen original source code hasn’t been an issue in previous cases where the reimplementation was done in another language with the changes one would expect coding up something a second time, I believe
What
What
You can find it in action on regex101 with the regex indeed matching the query string in the maliciouswebsite and not matching even just something with the port and no user/password
It is valid (just weird & not recommended) to give a user:pw combo to a website that doesn’t ask for one in the headers. Browsers stripping it off is a different thing
The sheer number of things you have to take into account to properly parse a URL should convince you to not use regexes for it
The fact that it’s less code, more correct, faster and more readable to use new URL() should also be enough to convince you to not use regexes
Lmao ah yes, one of those
If you’re not convinced with this you never will
You can just wrap your var with “new URL()” and have something faster, correct and easier to read, but I’m guessing you’ll change your ways silently in a few years when you’ve forgotten about this interaction and managed to convince yourself it was your own idea!
Until then i guess you can add /c/whatev at the end of my two examples and find something else to criticize and decide not to support
Oh man I was hoping you’d ask because URLs are way worse than people imagine and that’s still not even a tenth of what emails can do
HtTpS://user:pw@lemdro.id:443 is a valid url to lemdro.id and should match but will not
Http://maliciouswebsite.to/?q=http://lemdro.id will match but should not
To give you an idea of how bad this is I suggest anyone tell me if their lemmy app parsed those properly because Thunder treats the 1st one as an email and Jerboa thinks both are URLs
You also have the instances that have a valid address with www in front of them for old school internet habits, there’s urls that can have quotes in them, urls with chinese characters or russian characters that are both valid in their encoding but have a canonical form in ASCII
It’s a mess, and the correct way to do this is still faster than your regex in the end which is crazy
Never use regex on URLs, they’re not enough to properly do the job, you have the perfect, fast and correct URL parser already in your browser or your node binary, you need to use it, make a list of hostnames and use the browser’s URL api to extract hostnames then match against the list
Dude who gives a shit to know that
Hard sell. Calling people you know nothing about “bad developers” because they don’t like your tool on the other hand, that was cringe as hell and just made you look like you somehow tied your self-worth to php. “If my tool gets criticized; that means I’m being criticized!”
If you don’t give in to that, you start to see “Oh, that bug wouldn’t have happened if I’d been using [x]” and you become a better developer
When a woodworker cuts iself with a bandsaw, people who do what you do scream “He’s a bad woodworker!”
And while they’re screaming, we invented guardrails
Watch out OP, big funny appreciator over here found your post sub par