Relative Content

Tag Archive for boolean

What is this boolean law?

A friend of mine has shown sometime ago the name of the below boolean technique/law but I forget that name unfortunately. Does someone know what it’s called?

Better pattern than large if/else if/else for checking conditionals [duplicate]

This question already has answers here: How to tackle a ‘branched’ arrow head anti-pattern? [duplicate] (3 answers) Closed 9 years ago. I’ve got a fairly large set of booleans I’m checking in javascript, and then using them to alter the state of a layout in my React app. The whole thing is unwieldy, difficult to […]