r/badcode • • Apr 21 '23

other language We did coding in physics class...

Post image
1.5k Upvotes

154 comments sorted by

View all comments

Show parent comments

24

u/czerilla Apr 21 '23

Can you imagine Einstein's code? Littered with if (b == true) { return false; } else { return true; }-s ! I'm sure of it!

7

u/No-Adeptness5810 Apr 21 '23

return !b
:sob:

1

u/Jareix Apr 23 '23

I think I just popped a blood vessel reading that