Things that remind you of WDTWTF members
-
@Zerosquare said in Things that remind you of WDTWTF members:
: So who(m) do you hate here?
: Hmmm. Can I answer that with a regular expression?Is that regex /.*/ by any chance?
-
Shhh. Plausible deniability.
-
@Benjamin-Hall said in Things that remind you of WDTWTF members:
@Zerosquare said in Things that remind you of WDTWTF members:
: So who(m) do you hate here?
: Hmmm. Can I answer that with a regular expression?Is that regex /.*/ by any chance?
Surely
/.+/
for the misanthropes among us?
-
@Arantor I like to overspecify, so
^.*$
.
-
@cvi wait, the total people hated is occasionally zero? Are you sure about that?????
I have been known to suggest it is
/^.+?/
to avoid giving the impression that I just hate everyone.
-
-
@ixvedeusi can you hate nothing, though? Seems very existential crisis for this time of day.
It must be Thursday, I never could get the hang of Thursdays.
-
@Arantor said in Things that remind you of WDTWTF members:
@ixvedeusi can you hate nothing, though? Seems very existential crisis for this time of day.
It must be Thursday, I never could get the hang of Thursdays.
There's a bit of a hate train going for null, so yeah, hating nothing is possible.
-
@Carnage i was about to get into “is null the absence of something or the presence of nothing” then I realised that regex wouldn’t care either way.
-
@Carnage said in Things that remind you of WDTWTF members:
@Arantor said in Things that remind you of WDTWTF members:
@ixvedeusi can you hate nothing, though? Seems very existential crisis for this time of day.
It must be Thursday, I never could get the hang of Thursdays.
There's a bit of a hate train going for null, so yeah, hating nothing is possible.
If you think
.*
matches null, you might be an Oracle DBA
-
@kazitor said in Things that remind you of WDTWTF members:
@Carnage said in Things that remind you of WDTWTF members:
@Arantor said in Things that remind you of WDTWTF members:
@ixvedeusi can you hate nothing, though? Seems very existential crisis for this time of day.
It must be Thursday, I never could get the hang of Thursdays.
There's a bit of a hate train going for null, so yeah, hating nothing is possible.
If you think
.*
matches null, you might be an Oracle DBAPHP says hello. https://3v4l.org/ldK6Q
(This is me running a regex match of /.*/ against literal null and the output is “number of matches”, which is consistently 1. You will however notice that in PHP 8.1+ it correctly tells me to fuck off and not supply a null to a thing that expects a string.)
-
@Arantor said in Things that remind you of WDTWTF members:
PHP says hello.
Jumping straight into accusing him of writing PHP would have been uncharacteristically harsh.
-
@Arantor said in Things that remind you of WDTWTF members:
@kazitor said in Things that remind you of WDTWTF members:
@Carnage said in Things that remind you of WDTWTF members:
@Arantor said in Things that remind you of WDTWTF members:
@ixvedeusi can you hate nothing, though? Seems very existential crisis for this time of day.
It must be Thursday, I never could get the hang of Thursdays.
There's a bit of a hate train going for null, so yeah, hating nothing is possible.
If you think
.*
matches null, you might be an Oracle DBAPHP says hello. https://3v4l.org/ldK6Q
(This is me running a regex match of /.*/ against literal null and the output is “number of matches”, which is consistently 1. You will however notice that in PHP 8.1+ it correctly tells me to fuck off and not supply a null to a thing that expects a string.)
Ah the legendary consistency of PHP.
-
@MrL it’s completely consistent from 2000 to now: null is treated as a string of length zero. It’s just in the 2020s, functions that say they want strings won’t normally accept nulls (even if they can be coerced to strings) and this throws a deprecated warning such that going forward you have to give it an actual string.
But the answer it gives is still otherwise the same…
-
@Arantor said in Things that remind you of WDTWTF members:
@MrL it’s completely consistent from 2000 to now: null is treated as a string of length zero. It’s just in the 2020s, functions that say they want strings won’t normally accept nulls (even if they can be coerced to strings) and this throws a deprecated warning such that going forward you have to give it an actual string.
But the answer it gives is still otherwise the same…
Oh, ok, inconsistency is only planned and announced in this instance.
-
@Arantor said in Things that remind you of WDTWTF members:
can you hate nothing, though?
I'm very egalitarian about my hating. I don't see why I should exclude (no)things from it.
But the reason is simpler. Just because you have a zero-length name doesn't mean you get away easy.
-
@cvi said in Things that remind you of WDTWTF members:
@Arantor said in Things that remind you of WDTWTF members:
can you hate nothing, though?
I'm very egalitarian about my hating. I don't see why I should exclude (no)things from it.
But the reason is simpler. Just because you have a zero-length name doesn't mean you get away easy.
It's also just a simpler criterion. Translating back from the regexp we have:
Equivalent of
/.*/
:bool hate_user(string name) { return true; }
Equivalent of
/.+/
:bool hate_user(string name) { return !name.empty(); }
Clearly, the first one appeases both the misanthropes as well as the .
-
Congratulations. Ye have let regex ruin another thread.
-
@DogsB said in Things that remind you of WDTWTF members:
Congratulations. Ye have let regex ruin another thread.
One could even postulate a regex to identify all thread titles that will eventually be ruined by regex
-
@izzion said in Things that remind you of WDTWTF members:
@DogsB said in Things that remind you of WDTWTF members:
Congratulations. Ye have let regex ruin another thread.
One could even postulate a regex to identify all thread titles that will eventually be ruined by regex
s/hate_user/ruined_by_regex/
()
-
Regex is also potentially quite computationally heavy, therefore it also ruins the other kind of threads…
-
@Arantor said in Things that remind you of WDTWTF members:
@cvi wait, the total people hated is occasionally zero? Are you sure about that?????
I have been known to suggest it is
/^.+?/
to avoid giving the impression that I just hate everyone./^(?!$self$).*/
if you care about not appearing depressed.
-
@LaoC said in Things that remind you of WDTWTF members:
if you care about not appearing depressed.
If we already hate everyone, why would we care how we appear to them?
-
@HardwareGeek said in Things that remind you of WDTWTF members:
@LaoC said in Things that remind you of WDTWTF members:
if you care about not appearing depressed.
If we already hate everyone, why would we care how we appear to them?
You may not want to give them anything they could interpret as satisfaction.
-
@topspin said in Things that remind you of WDTWTF members:
constexpr bool hate_user(string const&) noexcept { return true; }
Fixed it. I don't care about users, but I do care about efficiency.
-
@DogsB said in Things that remind you of WDTWTF members:
Congratulations. Ye have let regex ruin another thread.
Sounds like WDTWTF members to me.
-
@cvi said in Things that remind you of WDTWTF members:
@topspin said in Things that remind you of WDTWTF members:
constexpr bool hate_user(string const&) noexcept { return true; }
Fixed it. I don't care about users, but I do care about efficiency.
I contemplated writing that, but preferred the clarity for those not in-the-know.
Filed under: west const is real const
-
@topspin said in Things that remind you of WDTWTF members:
clarity for those not in-the-know
This sounds like an admission that you care about your readers. And really, what are readers if not users of your posts.. *votes for @topspin as the impostor.*
-
@cvi said in Things that remind you of WDTWTF members:
And really, what are readers if not users of your posts..
Write-only posting is restricted to the
-
INB4 arrows
-
@boomzilla said in Things that remind you of WDTWTF members:
INB4 arrows
I think it's more :porque_no_los_dos:
-
@izzion said in Things that remind you of WDTWTF members:
@boomzilla said in Things that remind you of WDTWTF members:
INB4 arrows
I think it's more
:porque_no_los_dos:
-
@Arantor said in Things that remind you of WDTWTF members:
@izzion said in Things that remind you of WDTWTF members:
@boomzilla said in Things that remind you of WDTWTF members:
INB4 arrows
I think it's more
:porque_no_los_dos:That was not unintentional.
-
@izzion that was nicer than the Blakey I DIDNT WANT HELP. Sorry, it’s Friday afternoon, things are going increasingly sideways and this level of is my coping strategy.
-
-
@Arantor said in Things that remind you of WDTWTF members:
Regex is also potentially quite computationally heavy,
Only the compilation of them. The matching stage is usually cheap.
Oh wait, your code doesn't cache RE compilations so you have the full cost every time...
-
-
-
-
-
-
-
-
@topspin said in Things that remind you of WDTWTF members:
Interview with Senior Rust Developer in 2023 – 09:46
"It tasers you when you make an error."
Impressive how long he goes on. And on.
"Come back after you learn Haskell."
"It's not a cult."
-
@boomzilla said in Things that remind you of WDTWTF members:
Impressive how long he goes on. And on.
And all the cuts seem to imply he went on many more tangents...
-
@Tsaukpaetra or paused to figure out what to say next. Either way, a fun watch.
-
-
-
@Mason_Wheeler said in Things that remind you of WDTWTF members:
Third panel:
(Pikachu surprised face) :
return (a == 0);
-
@Arantor said in Things that remind you of WDTWTF members:
Third panel:
(Pikachu surprised face) :
return (a == 0);
return !a;
FTF
YC