r/programminghorror • • Dec 08 '25

Developers in 2020:

Post image
1.9k Upvotes

79 comments sorted by

View all comments

Show parent comment

1

u/xybolt Dec 08 '25

use the power of bit representation! Just remember val & 1 is odd and adjust to a workable snippet in whatever your language is!