The Official Funny Stuff Thread™
-
AI iS gOiNg tO rEpLaCe Us
-
-
@Arantor said in The Official Funny Stuff Thread™:
@homoBalkanus gh as in enough, but not as in though or bough.
Ah, I was wondering what that JGHIGH format was supposed to be.
-
-
@topspin The
Things that remind you of
threads are
And no fat shaming!1!!
-
@LaoC is that a J as in GIF?
-
@dcon said in The Official Funny Stuff Thread™:
They should have written BOOM (or draw a picture of an explosion) on the side of the bomb.
I am disappoint.
-
We all know the answer to #3 here in Arizona. It's Kari.
-
-
@da-Doctah said in The Official Funny Stuff Thread™:
We all know the answer to #3 here in Arizona. It's Kari.
Smallest lake? Or worst?
-
@topspin said in The Official Funny Stuff Thread™:
-
-
@Gern_Blaanston said in The Official Funny Stuff Thread™:
@da-Doctah said in The Official Funny Stuff Thread™:
We all know the answer to #3 here in Arizona. It's Kari.
Smallest lake? Or worst?
Actually, I've been telling my trivia friends this one as "What's the shallowest lake in Arizona?"
-
-
@HardwareGeek r/thingsthatneverhappened
-
-
-
-
As everybody knows, the cake is a lie and there is no spoon. Therefore...?
-
-
-
@DogsB Fire and/or nukes. Are they technically pesticides?
-
@Arantor said in The Official Funny Stuff Thread™:
@DogsB Fire and/or nukes. Are they technically pesticides?
Orbitibal Infestation Managment Platforms.
-
@DogsB said in The Official Funny Stuff Thread™:
Ellen Ripley, organic pest contol operations.
Fire is organic!
-
-
-
@Carnage said in The Official Funny Stuff Thread™:
Quite. In any sane language line 1 would be a syntax error.
-
@PleegWat said in The Official Funny Stuff Thread™:
Quite. In any sane language line 1 would be a syntax error.
It is in PHP for example. PHP also supports 0o17 syntax (similar to 0x17 for hex)
-
@Arantor said in The Official Funny Stuff Thread™:
@PleegWat said in The Official Funny Stuff Thread™:
Quite. In any sane language line 1 would be a syntax error.
It is in PHP for example. PHP also supports 0o17 syntax (similar to 0x17 for hex)
It's a necessary criterion, not a sufficient one.
-
@Arantor said in The Official Funny Stuff Thread™:
@PleegWat said in The Official Funny Stuff Thread™:
Quite. In any sane language line 1 would be a syntax error.
It is in PHP for example. PHP also supports 0o17 syntax (similar to 0x17 for hex)
Woe on you for making me check.
It parses the
0
prefix as octal, which is the only correct behaviour (even if0o
is the preferred prefix). But when presented with018
it appears to parse it to (decimal)1
and discard the rest of the literal without printing a diagnostic at any error level, which is bad. Then again, we're talking about PHP, so the above remark about sane languages applies.Have a relatively sane language for comparison:
$ for i in `seq 10 19`; do printf '%s: %d\n' 0$i 0$i; done 010: 8 011: 9 012: 10 013: 11 014: 12 015: 13 016: 14 017: 15 bash: printf: 018: invalid octal number 018: 1 bash: printf: 019: invalid octal number 019: 1
-
-
@PleegWat said in The Official Funny Stuff Thread™:
It parses the
0
prefix as octal, which is the only correct behaviourFrom a legacy perspective, yes.
Otherwise, ignoring "every language does it like that", the only correct behavior is: fuck octal, 010 == 10. Use the
0o
prefix if you have to, but don't fuck up human-readable numbers that clearly look decimal. Nobody needs octal except for the singular use case ofchmod
.
-
@topspin I'm looking for a meaning for the
0w0
prefix.
-
@DogsB said in The Official Funny Stuff Thread™:
Easy. You get rid of those beasts by NOT using artificially intelligent image generators.
Oh btw, have I shown you the cute bumble mouse I encountered in my garden?
-
-
@dkf said in The Official Funny Stuff Thread™:
@topspin I'm looking for a meaning for the
0w0
prefix.wexagesimal.
-
-
-
@PleegWat said in The Official Funny Stuff Thread™:
But when presented with 018 it appears to parse it to (decimal) 1 and discard the rest of the literal without printing a diagnostic at any error level, which is bad.
>php -a Interactive shell php > echo (017=='017') ? 'true' : 'false'; false php > echo (018=='018') ? 'true' : 'false'; PHP Parse error: Invalid numeric literal in php shell code on line 1 php >
?
-
@TimeBandit We need to bring back the harmless pranks.
-
@Watson said in The Official Funny Stuff Thread™:
@PleegWat said in The Official Funny Stuff Thread™:
But when presented with 018 it appears to parse it to (decimal) 1 and discard the rest of the literal without printing a diagnostic at any error level, which is bad.
>php -a Interactive shell php > echo (017=='017') ? 'true' : 'false'; false php > echo (018=='018') ? 'true' : 'false'; PHP Parse error: Invalid numeric literal in php shell code on line 1 php >
?
You missed the conversation derailing. The original post was in Node, and someone said language meant to be interpreted that even a language like PHP will error on code like that, and everyone forgot it was originally in Javascript.
But anyways, how about that Teams on Linux?
-
-
@Tsaukpaetra said in The Official Funny Stuff Thread™:
You missed the conversation derailing. The original post was in Node, and someone said language meant to be interpreted that even a language like PHP will error on code like that, and everyone forgot it was originally in Javascript.
No, I saw that; I was just wondering how @PleegWat was checking what PHP did, since the "relatively sane language for comparison" did the same thing that PHP does.
-
-
@loopback0 Phew, I'm safe. I only groom dogs on escalators recreationally
-
@Watson said in The Official Funny Stuff Thread™:
@PleegWat said in The Official Funny Stuff Thread™:
But when presented with 018 it appears to parse it to (decimal) 1 and discard the rest of the literal without printing a diagnostic at any error level, which is bad.
>php -a Interactive shell php > echo (017=='017') ? 'true' : 'false'; false php > echo (018=='018') ? 'true' : 'false'; PHP Parse error: Invalid numeric literal in php shell code on line 1 php >
?
Must be a version thing. I tested on a work box running an ancient version of PHP and I forgot they've been tightening up their game since 5.x
-
@PleegWat said in The Official Funny Stuff Thread™:
@Watson said in The Official Funny Stuff Thread™:
@PleegWat said in The Official Funny Stuff Thread™:
But when presented with 018 it appears to parse it to (decimal) 1 and discard the rest of the literal without printing a diagnostic at any error level, which is bad.
>php -a Interactive shell php > echo (017=='017') ? 'true' : 'false'; false php > echo (018=='018') ? 'true' : 'false'; PHP Parse error: Invalid numeric literal in php shell code on line 1 php >
?
Must be a version thing. I tested on a work box running an ancient version of PHP and I forgot they've been tightening up their game since 5.x
Ah, that would do it. You'll be glad to know then that these days
0=="not zero"
is false,
-
@Watson said in The Official Funny Stuff Thread™:
@PleegWat said in The Official Funny Stuff Thread™:
@Watson said in The Official Funny Stuff Thread™:
@PleegWat said in The Official Funny Stuff Thread™:
But when presented with 018 it appears to parse it to (decimal) 1 and discard the rest of the literal without printing a diagnostic at any error level, which is bad.
>php -a Interactive shell php > echo (017=='017') ? 'true' : 'false'; false php > echo (018=='018') ? 'true' : 'false'; PHP Parse error: Invalid numeric literal in php shell code on line 1 php >
?
Must be a version thing. I tested on a work box running an ancient version of PHP and I forgot they've been tightening up their game since 5.x
Ah, that would do it. You'll be glad to know then that these days
0=="not zero"
is false,I wonder how many places that change caused things to break.
edit: No I don't
-
@dcon said in The Official Funny Stuff Thread™:
@Watson said in The Official Funny Stuff Thread™:
@PleegWat said in The Official Funny Stuff Thread™:
@Watson said in The Official Funny Stuff Thread™:
@PleegWat said in The Official Funny Stuff Thread™:
But when presented with 018 it appears to parse it to (decimal) 1 and discard the rest of the literal without printing a diagnostic at any error level, which is bad.
>php -a Interactive shell php > echo (017=='017') ? 'true' : 'false'; false php > echo (018=='018') ? 'true' : 'false'; PHP Parse error: Invalid numeric literal in php shell code on line 1 php >
?
Must be a version thing. I tested on a work box running an ancient version of PHP and I forgot they've been tightening up their game since 5.x
Ah, that would do it. You'll be glad to know then that these days
0=="not zero"
is false,I wonder how many places that change caused things to break.
edit: No I don't
They deserved it.
-