Oh, so you can write code without using the mouse? Just keyboard shortcuts? Wow. 😮 great work. But why do you need a library to tell if a variable is even or odd? 🤔
Conversation
Notices
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Sunday, 11-Aug-2024 04:57:38 JST nixCraft 🐧 -
Freevolt (freevolt24@mastodon.social)'s status on Sunday, 11-Aug-2024 05:09:03 JST Freevolt @nixCraft Good answer: because it's so that next people can understand what I wanted to do there.
Honest answer: because I won't be doing this shit forever -
Owen Tyme (owentyme@mastodon.social)'s status on Sunday, 11-Aug-2024 05:09:11 JST Owen Tyme @nixCraft I just use the modulus operator for that. If the remainder is one, it's odd.
But I gather most people don't even know what a modulus is...
-
Torben (torbencht@mastodon.social)'s status on Sunday, 11-Aug-2024 05:58:04 JST Torben @nixCraft Because they put all their brain power into memorizing the shortcuts. No storage left for that "modolo" operator
-
LeftOfKarlMarx (leftofkarlmarx@mastodon.social)'s status on Sunday, 11-Aug-2024 06:44:06 JST LeftOfKarlMarx Show me on the keyboard where the NeoVim dev touched you.
-
Zorro Notorious MEB 🪷🪷🪷 (algocompsynth@mastodon.social)'s status on Sunday, 11-Aug-2024 07:21:00 JST Zorro Notorious MEB 🪷🪷🪷 @nixCraft Well, you see, once upon a time, not all computers were byte-addressed, used binary two's complement integer arithmetic with word sizes a power of two and had IEEE 754 standard floating point arithmetic. 😉
-
Cluster Fcku (clusterfcku@mastodon.social)'s status on Sunday, 11-Aug-2024 07:26:20 JST Cluster Fcku @nixCraft methods from well vetted libraries can handle thorny situations better than all those who assume that "variable" is synonymous to "integer". Those in a rush to jump to conclusions are well served with better protection.
-