[-] thatwill@lemmy.world 6 points 1 year ago

He's carting these huge fucking antlers around on a national tour just for the lamest of lame puns. He must have workshopped this "gag" and miraculously not died on his arse, for him to decide it's worth hauling the antlers around. Baffling.

[-] thatwill@lemmy.world 120 points 1 year ago

And despite the extra lanes, it's still gridlocked. Maybe they need just one more lane...

72
[-] thatwill@lemmy.world 25 points 1 year ago
[-] thatwill@lemmy.world 2 points 1 year ago

I just tested these out out of curiosity.
0=="text" returns false in PHP 8.2 as I'd expect.

The others make sense in the way that php juggles between types. An empty variable can type-juggle to null, but an array can't be directly compared with a string.

(Although you wouldn't really want to compare an array with a string, PHP just treats an array as greater than other variables. So weirdly, ([] > "") == true.)

[-] thatwill@lemmy.world 13 points 1 year ago

If you're trying to directly compare different variable types in any language without strong typing, you're going to have edge-case results which you might not expect.

My "coding like a moron" message still stands. PHP isn't a strongly typed language and it doesn't tell you off for trying stupid stuff like comparing a string with an int. Nor do other languages like JavaScript.

[-] thatwill@lemmy.world 53 points 1 year ago

"php doesn't stop me from coding like a moron, therefore php sucks"

[-] thatwill@lemmy.world 10 points 1 year ago

The trick is to only use DDG and nothing else. I haven't used Google for years so I have no idea how crap the DDG results are in comparison...

[-] thatwill@lemmy.world 2 points 1 year ago

Flexbox is god

201
Real Men (lemmy.world)
[-] thatwill@lemmy.world 0 points 1 year ago

Love the guitar solo on this one. Just noticed the new album is out today!

thatwill

joined 1 year ago