|start | find | index | login or register | edit|
by earl, 3873 days agoYou're writing "production-grade" code for a large project and encounter the following problem. You have to encode (in C) a decision that somewhat naturally maps to:
(x == 0 && y == 1) ||
"Naturally" means, if you consider and enumerate all valid possibilities, you'll get the above as result. (
Well, after a short timespan of pondering this piece of code, you notice that it is equivalent to the following:
Question: which piece do you finally decide to keep?
A few more bits of information:
|earl.strain.at • esa3 • online for 6926 days • c'est un vanilla site|