News for hackers. Stuff that matters.
Re:Ask HN: Which areas of math are practical to programming/... by TheTrueTDF on Wednesday September 21, 2016 @01:07AM (#12545558)
It's a bit strange that nobody mentioned Boolean algebra: https://en.wikipedia.org/wiki/Boolean_algebra
Re:Ask HN: Which areas of math are practical to programming/... by benkuykendall on Wednesday September 21, 2016 @01:26AM (#12545629)
Could you perhaps be a little more specific? Sure, we use OR, AND, and even XOR to deal with conditionals that map to T and F, but this seems like kind of a surface level use of booleans. When do we invoke the algebraic properties of the structure when coding?
Re:Ask HN: Which areas of math are practical to programming/... by susam on Wednesday September 21, 2016 @01:32AM (#12545663)
De Morgan's laws! I am sure people use it routinely to simplify complicated boolean expressions while writing code or mentally simplify complicated boolean expressions while reading code.
Re:Ask HN: Which areas of math are practical to programming/... by Jugurtha on Wednesday September 21, 2016 @09:19AM (#12547857)
And then you can probably reduce it with a Karnaugh map. It's pretty neat.