Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Yeah that should have been coded more politely:
autopause: "how about, dunno, maybe later or so?" -
"yes"
"no"
"on-condition"
"timed"
"..."
depends on the implementation and needs. Boolean might not be an option if it's an enum that partially resembles a boolean. -
He’s a visionary. One day boolean will be yes/no/maybe/idontknow and true/false will be a relic of the past
We won’t be talking about values being truthy or falsy anymore. They’ll be yessy or noee or mayby -
Keep looking. You will be amazed when you find that well-hiodden todo about a small DSL for defining auto pause conditions - the shortcut syntax will shock you...
-
@badcopnodonuts
WHAT DO YOU MEAN THERE ARE ONLY TWO BOOLEAN VALUES? BOOOOO, THAT'S NOT PROGRESSIVE! /s -
Ah, but sometimes it's easier/faster/clearer to distinguish between 'yes', 'no' and '[no defined choice made yet]' with a string, rather than with true/false/NULL ? If $wantsUpdates !== 'no' {sendTheirUpdates()}
-
@black-kite the fact you wrote “idontknow” and didn’t continue with the Malcom in the middle opening triggers me af. I am offended, sir.
Related Rants
SOME GUY IN MY TEAM, PROBABLY: I don't want to get political, but what the actual FUCK is boolean?
rant
wtf
boolean