1 point
*
who needs modulo when you can get less characters out of
while (number > 1) {
number -= 2;
}
return number;
very efficient
edit: or theres the trusty iseven api
1 point
1 point
who needs modulo when you can get less characters out of
while (number > 1) {
number -= 2;
}
return number;
very efficient
edit: or theres the trusty iseven api
Welcome to Programming Horror!
This is a place to share strange or terrible code you come across.
For more general memes about programming there’s also Programmer Humor.
Looking for mods. If youre interested in moderating the community feel free to dm @Ategon@programming.dev
328
Monthly active users
26
Posts
129
Comments