|
Volmarias posted:Why did you have an expert on assholes? Most of the EE users were experts on assholes
|
# ? Dec 29, 2019 00:53 |
|
|
# ? May 21, 2024 08:16 |
|
Doom Mathematic posted:"Never use ==" is almost literally the first thing you're taught when you learn PHP. Same with JavaScript, which is just as bad as PHP
|
# ? Dec 29, 2019 02:11 |
|
https://twitter.com/lunasorcery/status/1209592895117897728
|
# ? Dec 29, 2019 04:09 |
|
the three states of schrodinger's cat: probably, maybe, and empty string
|
# ? Dec 29, 2019 05:21 |
|
I kinda like it. In practice you usually just use it as if it returned a boolean since it returns truthy/falsey values, and returning vaguely descriptive strings for the true values is better than returning ints (and JS of course has no proper enum). The lack of a "yes" return is because the MIME type is nowhere close to enough information to be able to determine that (the codec's fourcc as suggested in a reply wouldn't be either).
|
# ? Dec 29, 2019 07:34 |
|
Instead of a string why not have it return an exception type with a pretty_long_type_name to fit a better description in than "maybe", and null on failure to make it still be falsey?
|
# ? Dec 29, 2019 07:39 |
|
Dumb Lowtax posted:Instead of a string why not have it return an exception type with a pretty_long_type_name to fit a better description in than "maybe", and null on failure to make it still be falsey? "Instead of doing something bad, why doesn't it do something good?" "Forget it, Jake, it's Javascript".
|
# ? Dec 29, 2019 07:41 |
|
yea multimedia is a loving mess and theres no way around itDumb Lowtax posted:Instead of a string why not have it return an exception type with a pretty_long_type_name to fit a better description in than "maybe", and null on failure to make it still be falsey? there's nothing interesting you can probably say, also they want to remove fingerprint vectors
|
# ? Dec 29, 2019 08:40 |
|
https://twitter.com/textfiles/status/1211195330592747520
|
# ? Dec 29, 2019 09:01 |
|
Is the horror the complaining about the use of the standard "send a keystroke to an X window" tool to send a keystroke to a chrome window? Because that seems like the way it should be done, rather than someone writing a special-purpose tool that only works for Chrome windows.
|
# ? Dec 29, 2019 09:28 |
|
I'm wondering why you'd wanna do that, instead of using selenium. I mean, surely he knows that it exists and works ... E: Oh it's the chromium bugtracker from 2014 part, that's why. My brain skipped over that part because of the weirdly worded attempt at a joke. Now I'm just curious about this 'layer of abstraction' he mentions ... dougdrums fucked around with this message at 13:45 on Dec 29, 2019 |
# ? Dec 29, 2019 13:38 |
|
Dumb Lowtax posted:Instead of a string why not have it return an exception type with a pretty_long_type_name to fit a better description in than "maybe", and null on failure to make it still be falsey? "probably" is "known mime type that we might support", "maybe" is "unknown mime type", and "" is "known mime type that we don't support". There isn't any other information that the browser could supply even if it wanted to.
|
# ? Dec 29, 2019 18:01 |
|
I know, those things in your second set of quotes per pair could be the names instead, right?
|
# ? Dec 29, 2019 18:31 |
|
Sure and then you add that to the list of fonts the browser supports as well as the maximum screen size and now you have a unique fingerprint for ad tracking purposes.
|
# ? Dec 29, 2019 19:18 |
|
Dumb Lowtax posted:I know, those things in your second set of quotes per pair could be the names instead, right? Well that'd be sorta needlessly wordy and way more prone to typos in your thing that can't be statically checked.
|
# ? Dec 30, 2019 03:54 |
|
Plorkyeran posted:Well that'd be sorta needlessly wordy and way more prone to typos in your thing that can't be statically checked. And the current version lets you use it directly in an if statement.
|
# ? Dec 30, 2019 12:55 |
|
xtal posted:Same with JavaScript, which is just as bad as PHP No, it's less bad code:
|
# ? Dec 30, 2019 17:51 |
|
Munkeymon posted:No, it's less bad https://dorey.github.io/JavaScript-Equality-Table/ JavaScript code:
|
# ? Dec 30, 2019 18:40 |
|
I haven't used PHP much in years. In JS using triple equals as a matter of course solves it's equality issues. Does using === let you stop worrying about it in PHP?
|
# ? Dec 30, 2019 18:45 |
|
xtal posted:https://dorey.github.io/JavaScript-Equality-Table/ Yeah, IIRC PHP's truth table isn't symmetric. JS is less bad.
|
# ? Dec 30, 2019 18:59 |
|
Thermopyle posted:I haven't used PHP much in years. Yes. code:
|
# ? Dec 30, 2019 21:34 |
|
PHP talk reminded me of this classic: http://images.use.perl.org/use.perl.org/_Aristotle/journal/33448.htmlcode:
|
# ? Dec 31, 2019 10:25 |
|
C++ code:
|
# ? Dec 31, 2019 11:30 |
|
More horrors from these very forumses:Jeffrey of YOSPOS posted:Lowtax change it so that unregistered users can't list forums in the panel. Some piece of logic in the code decided that not being able to list forums means it should show the banned page. The banned page shows your username - it'd say something like "CONGRATULATIONS fishmech!!!". However, logged in users do not have a username, and get set to a default one. Thanks to literally radium, this default was "Unregistered human being". Edit: More Jeffrey of YOSPOS posted:...and fixed the bug. Gonna go back to watching the expanse with my friends now happy new years everyone!!! Absurd Alhazred fucked around with this message at 00:10 on Jan 2, 2020 |
# ? Jan 1, 2020 23:45 |
|
bless these, the dead gay forums
|
# ? Jan 2, 2020 01:02 |
|
I was reading that as if it was history and then I saw the commit date lmaoradium posted:[WARN] the year is now 2020 and you are gay
|
# ? Jan 2, 2020 01:24 |
|
221 files changed, 72935 insertions(+), 38821 deletions(-)
|
# ? Jan 2, 2020 05:09 |
|
dougdrums posted:I was reading that as if it was history and then I saw the commit date lmao drat, how did he know??
|
# ? Jan 2, 2020 05:21 |
|
ratbert90 posted:221 files changed, 72935 insertions(+), 38821 deletions(-) I want to believe that this was an automated refactor that just renames something, but I know in my heart of hearts it's not and just has a commit message like "fixed"
|
# ? Jan 2, 2020 14:34 |
|
Volmarias posted:I want to believe that this was an automated refactor that just renames something, but I know in my heart of hearts it's not and just has a commit message like "fixed" About 70% was done by hand, and I have over 5 paragraphs of commit notes. Edit* The title of the commit log is "The refactoring" And the first sentence is: "As I walk through the valley of the shadow of death, I will fear no evil." FlapYoJacks fucked around with this message at 16:41 on Jan 2, 2020 |
# ? Jan 2, 2020 16:31 |
|
ratbert90 posted:The title of the commit log is "The refactoring" I've always been fond of "lasciate ogni speranza, voi ch'entrate".
|
# ? Jan 2, 2020 19:37 |
|
Zopotantor posted:I've always been fond of "lasciate ogni speranza, voi ch'entrate". I think I've left that particular line on a comment for some mega class that I never was able to effectively refactor. edit: For people who haven't seen it before it translates roughly to "All Hope Abandon, Those Who Enter Here" from the gates to hell in the Divine Comedy 1337JiveTurkey fucked around with this message at 04:02 on Jan 3, 2020 |
# ? Jan 3, 2020 03:58 |
|
A former coworker was fond of "once more unto the breach...".
|
# ? Jan 3, 2020 17:55 |
|
"Re-enacting Pickett's Charge"?
|
# ? Jan 3, 2020 19:03 |
|
# TODO: uuuuugh
|
# ? Jan 4, 2020 05:54 |
|
https://www.scamlang.dev/quote:SCaml
|
# ? Jan 4, 2020 17:11 |
|
SCaml Ang?
|
# ? Jan 4, 2020 17:29 |
|
Zopotantor posted:I've always been fond of "lasciate ogni speranza, voi ch'entrate".
|
# ? Jan 4, 2020 19:46 |
|
It's a language for bitcoin nonsense so "it's not a scam" is by definition false.
|
# ? Jan 4, 2020 20:22 |
|
|
# ? May 21, 2024 08:16 |
|
RPATDO_LAMD posted:It's a language for bitcoin nonsense so "it's not a scam" is by definition false. I didn't scroll all the way down the first time I looked, so I can't believe I missed this: quote:SCaml version 1.0 "Pyramid" released! extremely Not A Scam.
|
# ? Jan 4, 2020 20:25 |