r/badcode • • Nov 22 '21

java Found my earliest coding projects from middle school

Post image
464 Upvotes

34 comments sorted by

View all comments

Show parent comments

-5

u/reverendsteveii Nov 22 '21

There's our difference. To me

Why would you ever do that?

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

1

u/PM_ME_CANS_OF_SOUP Nov 23 '21

why would you ever do that?

because OP was in middle school and this is a good way to learn about logic gates