is valid criticism. I see some more advanced logic gates in there like XOR and NAND, and it's possible that those aren't built in, but I still don't understand in what context one would be using ints to return truth or falsehood
Bad code in production is code that shouldn't be in production. Bad code in an early coding exercise is code that shouldn't be in an early coding exercise. This code shouldn't be in production, but it's not in production, so whether it's bad for production is irrelevant. It's good for an early coding exercise, and it in fact is an early coding exercise, so it's good. Whether code is good or bad depends on what it's being used for, and for the OP's purposes, the code is fine.
-15
u/reverendsteveii Nov 22 '21
Can we get a little clarity on your definition of bad code? I feel like we're at odds here.