Weinberg’s Second Law: If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.
I think it’s even more worrisome that there’s a need for isOdd() in so many packages and applications. I’ve been writing code professionally since 1981 and I think I’ve needed to know if a number was odd about six times.
What the heck — I’ll go there:
If you can’t write a function to determine if a given integral input is odd in under 10 seconds, you’re either a crappy typist or you shouldn’t be programming.
There. Deal with it.