- Joined
- Mar 22, 2006
- Messages
- 12,451
- Likes received
- 53
- Thanks received
- 16
- Location
- Jupiter
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 ******* 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
Crap programmer translates it to:
Code:
if not statement1
or not statement2
or not statement3
or not statement4 then result2
else result1
THEY'RE NOT THE ******* SAME!
What a lot of programmers seem to need is a decent grounding in boolean algebra!

