Someone recently posted a link to a blog which demonstrated using venn diagrams how table joins work in an RDBMS SQL system.
We need something similar for "logic". I've lost count of how many times I've come across this sort of error:
Business logic rules:
Crap programmer translates it to:
THEY'RE NOT THE F***ING SAME!
What a lot of programmers seem to need is a decent grounding in boolean algebra!
We need something similar for "logic". I've lost count of how many times I've come across this sort of error:
Business logic rules:
Code:
if statement1 or statement2 or statement3 or statement4 then result1 else result2
Code:
if not statement1 or not statement2 or not statement3 or not statement4 then result2 else result1
What a lot of programmers seem to need is a decent grounding in boolean algebra!
Comment