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
-
Best practice is to break that expression out into a function and comment the fuck out of the logic with lots of apologies.
-
now look into prepositional calculus and the kind of logic you can express with things like Prolog or Clingo.
I hate it too -
@donkulator
troll && troll -> false
troll || troll -> troll
troll && false -> troll
troll && true -> troll
troll || false -> troll
troll || true -> true -
JsonBoa31002yFinding a way to easily solve loooooong boolean equations is literally the way to solve most of the hardest problems known to humanity.
Not kidding, this sucker is an NP-Complete, offer referred to as "Satisfiability Problem", "SAT", or, more often, "that bitch".
Related Rants

When i open a 2 gigabyte wordlist text file and forgot that my defaultsβ text editor is GUI based.
When developers are frustrated with stupid laws ππ
I hate complex boolean logic.
(true||false) && true || false || (true && false) ... etc (continue for at least ten clauses four times as long)
rant
dev-life
frustration
boolean logic